
Mon, 05/08/2023 - 12:09
Forums:
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
Tue, 05/09/2023 - 22:31
0D means zero-dimension mesh element, usually it is built on one node.
Wed, 05/10/2023 - 22:47
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
Wed, 05/10/2023 - 23:39
The question is not clear. I see no any contradiction in the code and descriptions. Please see it mode carefully.
Wed, 05/10/2023 - 23:43
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).
Thu, 05/11/2023 - 11:14
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