public class PolygonalMeshRenderer extends MeshRendererBase
PolygonalMesh
objects.Constructor and Description |
---|
PolygonalMeshRenderer(PolygonalMesh mesh) |
Modifier and Type | Method and Description |
---|---|
FeatureIndexArray |
getFaceLines(int[] faceIdxs) |
FeatureIndexArray |
getFaceTriangles(int[] faceIdxs) |
PolygonalMesh |
getMesh() |
void |
prerender(RenderProps props)
Updates rendering information
|
void |
render(Renderer renderer,
RenderProps props,
boolean highlight,
boolean sorted) |
void |
render(Renderer renderer,
RenderProps props,
boolean highlight,
FeatureIndexArray faces,
FeatureIndexArray edges,
boolean featureSelection) |
void |
render(Renderer renderer,
RenderProps props,
int flags) |
void |
renderEdges(Renderer renderer,
RenderProps props,
boolean highlight,
boolean sorted) |
void |
renderEdges(Renderer renderer,
RenderProps props,
boolean highlight,
FeatureIndexArray edges,
boolean featureSelection) |
void |
renderEdges(Renderer renderer,
RenderProps props,
int flags) |
void |
sortFaces(int[] faceIdxs,
int start,
int count,
Vector3d zdir)
"Sorts" faces according to the direction provided.
|
<E extends Face> |
sortFaces(java.util.List<E> faces,
Vector3d zdir)
"Sorts" faces according to the direction provided.
|
boolean |
updateFaceLines(int[] faceIdxs,
FeatureIndexArray features) |
boolean |
updateFaceLines(int[] faceIdxs,
int offset,
int len,
FeatureIndexArray features) |
boolean |
updateFaceTriangles(int[] faceIdxs,
FeatureIndexArray features)
Updates a list of features
|
boolean |
updateFaceTriangles(int[] faceIdxs,
int offset,
int len,
FeatureIndexArray features) |
getRenderObject
public PolygonalMeshRenderer(PolygonalMesh mesh)
public PolygonalMesh getMesh()
getMesh
in class MeshRendererBase
public void prerender(RenderProps props)
MeshRendererBase
prerender
in class MeshRendererBase
props
- render propertiespublic <E extends Face> int[] sortFaces(java.util.List<E> faces, Vector3d zdir)
public void sortFaces(int[] faceIdxs, int start, int count, Vector3d zdir)
public FeatureIndexArray getFaceTriangles(int[] faceIdxs)
public boolean updateFaceTriangles(int[] faceIdxs, FeatureIndexArray features)
faceIdxs
- face indicesfeatures
- feature indicespublic boolean updateFaceTriangles(int[] faceIdxs, int offset, int len, FeatureIndexArray features)
public FeatureIndexArray getFaceLines(int[] faceIdxs)
public boolean updateFaceLines(int[] faceIdxs, FeatureIndexArray features)
public boolean updateFaceLines(int[] faceIdxs, int offset, int len, FeatureIndexArray features)
public void renderEdges(Renderer renderer, RenderProps props, int flags)
public void renderEdges(Renderer renderer, RenderProps props, boolean highlight, boolean sorted)
public void renderEdges(Renderer renderer, RenderProps props, boolean highlight, FeatureIndexArray edges, boolean featureSelection)
public void render(Renderer renderer, RenderProps props, int flags)
render
in class MeshRendererBase
public void render(Renderer renderer, RenderProps props, boolean highlight, boolean sorted)
public void render(Renderer renderer, RenderProps props, boolean highlight, FeatureIndexArray faces, FeatureIndexArray edges, boolean featureSelection)