write_mesh_coordinates

subsurface.writer.to_rex.mesh_encoder.write_mesh_coordinates(vertex, triangles, normal=None, texture=None, colors=None)[source]

Block with the coordinates of a mesh. This has to go with a header!

Parameters
  • vertex (numpy.ndarray[float32]) – Array of vertex XYZXYZ…

  • triangles (numpy.ndarray[int32]) – This is a list of integers which form one triangle. Please make sure that normal and texture coordinates are inline with the vertex coordinates. One index refers to the same normal and texture position. The triangle orientation is required to be counter-clockwise (CCW)

  • normal (numpy.ndarray) –

  • texture (numpy.ndarray) –

  • colors (numpy.ndarray) –

Returns: