Moderator: bernd
@HarryvL:bernd wrote: ↑Tue Mar 13, 2018 2:21 pmWe would need such a node numbering sheme from FreeCAD (med) to vtk like we did for CalculiX FEM_Mesh_CalculiX
Code: Select all
.
.
.
// determine main nodes total number
// elements ccx no.5 (15 node wedge) as they are not supported in VTK
// has to be exported as type ccx type 2 (VTK typ 13)
// additional nodes has to be ommited
int nn = 0;
foreach (KeyValuePair<int, tNode> KVP in NodeTab)
if (KVP.Value.IsFirst)
nn++;
// total number of elements
.
.
.
I think not.
Code: Select all
typedef enum {
// Linear cells
VTK_EMPTY_CELL = 0,
VTK_VERTEX = 1,
VTK_POLY_VERTEX = 2,
VTK_LINE = 3,
VTK_POLY_LINE = 4,
VTK_TRIANGLE = 5,
VTK_TRIANGLE_STRIP = 6,
VTK_POLYGON = 7,
VTK_PIXEL = 8,
VTK_QUAD = 9,
VTK_TETRA = 10,
VTK_VOXEL = 11,
VTK_HEXAHEDRON = 12,
VTK_WEDGE = 13,
VTK_PYRAMID = 14,
VTK_PENTAGONAL_PRISM = 15,
VTK_HEXAGONAL_PRISM = 16,
// Quadratic, isoparametric cells
VTK_QUADRATIC_EDGE = 21,
VTK_QUADRATIC_TRIANGLE = 22,
VTK_QUADRATIC_QUAD = 23,
VTK_QUADRATIC_POLYGON = 36,
VTK_QUADRATIC_TETRA = 24,
VTK_QUADRATIC_HEXAHEDRON = 25,
VTK_QUADRATIC_WEDGE = 26,
VTK_QUADRATIC_PYRAMID = 27,
VTK_BIQUADRATIC_QUAD = 28,
VTK_TRIQUADRATIC_HEXAHEDRON = 29,
VTK_QUADRATIC_LINEAR_QUAD = 30,
VTK_QUADRATIC_LINEAR_WEDGE = 31,
VTK_BIQUADRATIC_QUADRATIC_WEDGE = 32,
VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON = 33,
VTK_BIQUADRATIC_TRIANGLE = 34,
Check actual vtk user's guide https://www.vtk.org/vtk-users-guide/ directly https://www.kitware.com/products/books/ ... sGuide.pdf around page 481 (legacy formatting starts few pages above). There is quadratic wedge, but when I was implementing this to my optimizer I skipped quadratic wedge, probably I had an old manual. That time I didn't care about node ordering - in the same order I read nodes from inp file I print them to vtk file.bernd wrote: ↑Wed Mar 14, 2018 1:43 amahh ... found this https://www.vtk.org/data-model/ and https://www.vtk.org/wp-content/uploads/ ... ormats.pdf page 9 and 10, so no quadratic wedge ...