01-07-2021, 05:20 PM
Hm, what do you mean by "fill the mesh with triangles"?
The 3D graphics usually works with defining 3D positions (in WPF 3D this is defined by MeshGeometry3D.Positions collection). Then the triangles are defined by triangles indices (MeshGeometry3D.TriangleIndices) - this collection defines the indexes in the positions collection. Those triangles are then usually filled by the color in the pixel shader.
Am an not an expert for 3D printing, but I think that .stl or .obj file format with positions and triangle indices should be enough for 3D printer. Both files can be created by AssimpExporter - see Assimp / Assimp exporter sample.
The 3D graphics usually works with defining 3D positions (in WPF 3D this is defined by MeshGeometry3D.Positions collection). Then the triangles are defined by triangles indices (MeshGeometry3D.TriangleIndices) - this collection defines the indexes in the positions collection. Those triangles are then usually filled by the color in the pixel shader.
Am an not an expert for 3D printing, but I think that .stl or .obj file format with positions and triangle indices should be enough for 3D printer. Both files can be created by AssimpExporter - see Assimp / Assimp exporter sample.
Andrej Benedik

