Skip to content

Question about creating X-ray images from 3D meshes #14

@zhihan0210

Description

@zhihan0210

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions