public class CustomIndexedTriangleMesh extends CustomMesh
| Modifier and Type | Field and Description |
|---|---|
protected Color3f[] |
colors |
protected int[] |
faces |
protected int |
nFaces |
protected int |
nVertices |
protected Point3f[] |
vertices |
changed, color, DEFAULT_COLOR, loadedFromFile, loadedFromName, mesh, shaded, transparencyALLOW_APPEARANCE_OVERRIDE_READ, ALLOW_APPEARANCE_OVERRIDE_WRITE, ALLOW_APPEARANCE_READ, ALLOW_APPEARANCE_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE, ALLOW_GEOMETRY_READ, ALLOW_GEOMETRY_WRITEALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING| Constructor and Description |
|---|
CustomIndexedTriangleMesh(List<Point3f> mesh) |
CustomIndexedTriangleMesh(Point3f[] vertices,
int[] faces) |
CustomIndexedTriangleMesh(Point3f[] vertices,
int[] faces,
Color3f color,
float transp) |
addGeometry, cloneNode, duplicateNode, getAllGeometries, getAppearance, getAppearanceOverrideEnable, getBounds, getCollisionBounds, getGeometry, getGeometry, indexOfGeometry, insertGeometry, intersect, intersect, intersect, numGeometries, removeAllGeometries, removeGeometry, removeGeometry, setAppearance, setAppearanceOverrideEnable, setCollisionBounds, setGeometry, setGeometrycloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickableclearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferencesprotected Point3f[] vertices
protected Color3f[] colors
protected int[] faces
protected int nFaces
protected int nVertices
public CustomIndexedTriangleMesh(Point3f[] vertices, int[] faces)
public String getFile()
getFile in class CustomMeshpublic String getName()
getName in class CustomMeshpublic boolean hasChanged()
hasChanged in class CustomMeshpublic void update()
update in class CustomMeshpublic List getMesh()
getMesh in class CustomMeshpublic Color3f getColor()
getColor in class CustomMeshpublic float getTransparency()
getTransparency in class CustomMeshpublic boolean isShaded()
isShaded in class CustomMeshpublic void setShaded(boolean b)
setShaded in class CustomMeshpublic void calculateMinMaxCenterPoint(Point3f min, Point3f max, Point3f center)
calculateMinMaxCenterPoint in class CustomMeshpublic float getVolume()
getVolume in class CustomMeshprotected void addVerticesToGeometryStripArray(Point3f[] v)
addVerticesToGeometryStripArray in class CustomMeshprotected void addVerticesToGeometryArray(Point3f[] v)
addVerticesToGeometryArray in class CustomMeshpublic int[] vertexIndicesOfPoint(Point3f p)
vertexIndicesOfPoint in class CustomMeshpublic int vertexIndexOfPoint(Point3f p)
public void setCoordinate(int i,
Point3f p)
setCoordinate in class CustomMeshpublic void setCoordinates(int[] indices,
Point3f p)
setCoordinates in class CustomMeshpublic void recalculateNormals(GeometryArray ga)
recalculateNormals in class CustomMeshprotected void addVertices(Point3f[] v)
addVertices in class CustomMeshprotected void removeVertices(int[] indices)
removeVertices in class CustomMeshpublic void setColor(Color3f color)
setColor in class CustomMeshpublic void setColor(List<Color3f> color)
setColor in class CustomMeshpublic void setColor(int vtxIndex,
Color3f color)
setColor in class CustomMeshpublic void loadSurfaceColorsFromImage(ij.ImagePlus imp)
loadSurfaceColorsFromImage in class CustomMeshpublic void setTransparency(float transparency)
setTransparency in class CustomMeshprotected Appearance createAppearance()
createAppearance in class CustomMeshpublic void restoreDisplayedData(String path, String name)
restoreDisplayedData in class CustomMeshpublic void swapDisplayedData(String path, String name)
swapDisplayedData in class CustomMeshpublic void clearDisplayedData()
clearDisplayedData in class CustomMeshprotected GeometryArray createGeometry()
createGeometry in class CustomMeshpublic Vector3f[] getNormals()
Copyright © 2015–2021 Fiji. All rights reserved.