MeshVS_EntityType, MeshVS_SelectionModeFlags: "points"

Hello forum,
just a quick question for you:
1) what is exactly the difference in

typedef enum MeshVS_EntityType

between

MeshVS_ET_Node = 0x01,
MeshVS_ET_0D = 0x02

?

2) and, similarly, what is exactly the difference in

typedef enum MeshVS_SelectionModeFlags

between

MeshVS_SMF_Node = 0x0001
MeshVS_SMF_0D = 0x0002

?

Thank you for your answer.
Buona giornata
Giovanni

Mikhail Sazonov's picture

0D means zero-dimension mesh element, usually it is built on one node.

Giovanni Bettega's picture

Than you Mikhail

in function

void MeshVS_Mesh::ComputeSelection(...)

I found the block:

switch (aType)
{
case MeshVS_ET_Volume: aPrior = 1; break;
case MeshVS_ET_Face: aPrior = 2; break;
case MeshVS_ET_Link: aPrior = 3; break;
case MeshVS_ET_0D: aPrior = 4; break;
default: break;
}

in which MeshVS_ET_0D obviously refers to a "mesh point".

In the header file, where the function

MeshVS_DataSource::GetGeom(...)

is declared, the following comment is written:

" [...]
It is recommended this parameter to be set to 1 for node.
Type is type of node or element (from enumeration). It is recommended this parameter to be set to
MeshVS_ET_Node for node."

Why MeshVS_ET_Node instead of MeshVS_ET_Node, as before?
This was the origin of my question
Grazie e buona serata
Giovanni

Mikhail Sazonov's picture

The question is not clear. I see no any contradiction in the code and descriptions. Please see it mode carefully.

Mikhail Sazonov's picture

In the block you pointed in ComputeSelection() the type is always element (parameter IsElement==true in the call to GetGeom()). Enum MeshVS_ET_0D stands for a type of element, while MeshVS_ET_Node stands for a type of node (which is the only one MeshVS_ET_Node).

Giovanni Bettega's picture

Thank you

MeshVS_ET_Volume is a 3D element
MeshVS_ET_Face is a 2D element
MeshVS_ET_Link is a 1D element
MeshVS_ET_0D is a 0D element

while

MeshVS_ET_Node is not an "element", but a "component" of an "element".

My dubt arose also because what is an "element" and what is not an element
are in the same enum
Grazie Mikhail
Giovanni