1. gvxr.makeTriangularMesh input format
In the notebook examples, meshes are loaded from STL files, but I also found gvxr.makeTriangularMesh, which allows creating a mesh from explicit vertices and faces. I attempted to call makeTriangularMesh with:
- aVertexSet as a flattened list of vertex coordinates: [x1, y1, z1, x2, y2, z2, ...]
- aTriangleIndexSet as a flattened list of vertex indices: [v0, v1, v2, v3, v4, v5, ...] (3 indices per triangle)
This fails, and I am unsure whether this input format is correct. Is there any minimal working example using makeTriangularMesh?
2. Coordinate system conventions
I would also like clarification on the coordinate system relationship between:
- the mesh
- setSourcePosition
- setDetectorPosition
- setDetectorUpVector
In my tests, the source/detector configuration appears inverted relative to the mesh orientation. Are the mesh, source, and detector defined in the same global coordinate system?
Thank you for your help.
1. gvxr.makeTriangularMesh input format
In the notebook examples, meshes are loaded from STL files, but I also found gvxr.makeTriangularMesh, which allows creating a mesh from explicit vertices and faces. I attempted to call makeTriangularMesh with:
This fails, and I am unsure whether this input format is correct. Is there any minimal working example using makeTriangularMesh?
2. Coordinate system conventions
I would also like clarification on the coordinate system relationship between:
In my tests, the source/detector configuration appears inverted relative to the mesh orientation. Are the mesh, source, and detector defined in the same global coordinate system?
Thank you for your help.