Package boofcv.struct.mesh
Class VertexMesh
java.lang.Object
boofcv.struct.mesh.VertexMesh
Specifies a 3D mesh. BigArray types are used since a 3D mesh can have a very large number of points in it.
-
Field Summary
Modifier and TypeFieldDescriptionfinal DogArray_I32
Which indexes correspond to each vertex in a shapefinal DogArray_I32
Start index of each shape + the last index3D location of each vertex -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addShape
(List<Point3D_F64> shape) Adds a new shape with the specified vertexes.void
getShape
(int which, DogArray<Point3D_F64> output) Copies the entire shape into the output arraygetShapeVertex
(int which, @Nullable Point3D_F64 output) Copies the shape vertex into the point.void
reset()
setTo
(VertexMesh src) int
size()
Returns number of shapes / polygons in the meshtoAccess()
Wraps the data structure insideMeshPolygonAccess
.
-
Field Details
-
vertexes
3D location of each vertex -
indexes
Which indexes correspond to each vertex in a shape -
offsets
Start index of each shape + the last index
-
-
Constructor Details
-
VertexMesh
public VertexMesh()
-
-
Method Details
-
size
public int size()Returns number of shapes / polygons in the mesh -
getShapeVertex
Copies the shape vertex into the point. -
getShape
Copies the entire shape into the output array- Parameters:
which
- Which shape to copyoutput
- Output storage for the shape
-
addShape
Adds a new shape with the specified vertexes. -
setTo
-
reset
public void reset() -
toAccess
Wraps the data structure insideMeshPolygonAccess
.
-