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, transparency
ALLOW_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_WRITE
ALLOW_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, setGeometry
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
protected 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 CustomMesh
public String getName()
getName
in class CustomMesh
public boolean hasChanged()
hasChanged
in class CustomMesh
public void update()
update
in class CustomMesh
public List getMesh()
getMesh
in class CustomMesh
public Color3f getColor()
getColor
in class CustomMesh
public float getTransparency()
getTransparency
in class CustomMesh
public boolean isShaded()
isShaded
in class CustomMesh
public void setShaded(boolean b)
setShaded
in class CustomMesh
public void calculateMinMaxCenterPoint(Point3f min, Point3f max, Point3f center)
calculateMinMaxCenterPoint
in class CustomMesh
public float getVolume()
getVolume
in class CustomMesh
protected void addVerticesToGeometryStripArray(Point3f[] v)
addVerticesToGeometryStripArray
in class CustomMesh
protected void addVerticesToGeometryArray(Point3f[] v)
addVerticesToGeometryArray
in class CustomMesh
public int[] vertexIndicesOfPoint(Point3f p)
vertexIndicesOfPoint
in class CustomMesh
public int vertexIndexOfPoint(Point3f p)
public void setCoordinate(int i, Point3f p)
setCoordinate
in class CustomMesh
public void setCoordinates(int[] indices, Point3f p)
setCoordinates
in class CustomMesh
public void recalculateNormals(GeometryArray ga)
recalculateNormals
in class CustomMesh
protected void addVertices(Point3f[] v)
addVertices
in class CustomMesh
protected void removeVertices(int[] indices)
removeVertices
in class CustomMesh
public void setColor(Color3f color)
setColor
in class CustomMesh
public void setColor(List<Color3f> color)
setColor
in class CustomMesh
public void setColor(int vtxIndex, Color3f color)
setColor
in class CustomMesh
public void loadSurfaceColorsFromImage(ij.ImagePlus imp)
loadSurfaceColorsFromImage
in class CustomMesh
public void setTransparency(float transparency)
setTransparency
in class CustomMesh
protected Appearance createAppearance()
createAppearance
in class CustomMesh
public void restoreDisplayedData(String path, String name)
restoreDisplayedData
in class CustomMesh
public void swapDisplayedData(String path, String name)
swapDisplayedData
in class CustomMesh
public void clearDisplayedData()
clearDisplayedData
in class CustomMesh
protected GeometryArray createGeometry()
createGeometry
in class CustomMesh
public Vector3f[] getNormals()
Copyright © 2015–2021 Fiji. All rights reserved.