-
- Downloads
ENH: Add support for texturing surface mesh
1) In imstkMesh, allow to store point data arrays. 2) In imstkSurfaceMesh, get rid of the API for texture coordinates and vertice tangents. Instead, we'll store the name of the data array to use as a default texture coordinate if none is specified by the user, and offer the addTexture() API to populate a texture map storing the filename of the texture and the name of the array to use as texture coordinates. 3) Update imstkVTKMeshReader to copy all point data, not just active texture coordinates, and define the default texture coordinates if active coordinates exist. 4) Update imstkSurfaceMeshRenderDelegate to convert back point data arrays to vtk data arrays wihtin the polydata, and use the latest API in VTK to define multiple texture coordinates and textures.
Showing
- Base/Geometry/Mesh/imstkMesh.cpp 35 additions, 0 deletionsBase/Geometry/Mesh/imstkMesh.cpp
- Base/Geometry/Mesh/imstkMesh.h 22 additions, 0 deletionsBase/Geometry/Mesh/imstkMesh.h
- Base/Geometry/Mesh/imstkSurfaceMesh.cpp 50 additions, 128 deletionsBase/Geometry/Mesh/imstkSurfaceMesh.cpp
- Base/Geometry/Mesh/imstkSurfaceMesh.h 15 additions, 24 deletionsBase/Geometry/Mesh/imstkSurfaceMesh.h
- Base/Geometry/Reader/imstkVTKMeshReader.cpp 36 additions, 16 deletionsBase/Geometry/Reader/imstkVTKMeshReader.cpp
- Base/Geometry/Reader/imstkVTKMeshReader.h 10 additions, 3 deletionsBase/Geometry/Reader/imstkVTKMeshReader.h
- Base/Rendering/RenderDelegate/imstkSurfaceMeshRenderDelegate.cpp 56 additions, 1 deletion...ndering/RenderDelegate/imstkSurfaceMeshRenderDelegate.cpp
- Examples/Sandbox/main.cpp 27 additions, 1 deletionExamples/Sandbox/main.cpp
Loading
Please register or sign in to comment