DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

MeshVS_EntityType, MeshVS_SelectionModeFlags: "points"

Modeling Data and AlgorithmsMon, 05/08/2023 - 12:095 replies

Browse this forum
QuestionAuthor

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
Author

Discussion

5 archived replies

Posts are displayed in their archived order.

01Commenter-1

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

02Author

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
Author

03Commenter-1

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

04Commenter-1

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).

05Author

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
Author