public class CustomIndexedTriangleMesh extends CustomMesh
| Modifier and Type | Field and Description |
|---|---|
protected org.jogamp.vecmath.Color3f[] |
colors |
protected int[] |
faces |
protected int |
nFaces |
protected int |
nVertices |
protected org.jogamp.vecmath.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<org.jogamp.vecmath.Point3f> mesh) |
CustomIndexedTriangleMesh(org.jogamp.vecmath.Point3f[] vertices,
int[] faces) |
CustomIndexedTriangleMesh(org.jogamp.vecmath.Point3f[] vertices,
int[] faces,
org.jogamp.vecmath.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 org.jogamp.vecmath.Point3f[] vertices
protected org.jogamp.vecmath.Color3f[] colors
protected int[] faces
protected int nFaces
protected int nVertices
public CustomIndexedTriangleMesh(List<org.jogamp.vecmath.Point3f> mesh)
public CustomIndexedTriangleMesh(org.jogamp.vecmath.Point3f[] vertices, int[] faces)
public CustomIndexedTriangleMesh(org.jogamp.vecmath.Point3f[] vertices, int[] faces, org.jogamp.vecmath.Color3f color, float transp)
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 org.jogamp.vecmath.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(org.jogamp.vecmath.Point3f min, org.jogamp.vecmath.Point3f max, org.jogamp.vecmath.Point3f center)
calculateMinMaxCenterPoint in class CustomMeshpublic float getVolume()
getVolume in class CustomMeshprotected void addVerticesToGeometryStripArray(org.jogamp.vecmath.Point3f[] v)
addVerticesToGeometryStripArray in class CustomMeshprotected void addVerticesToGeometryArray(org.jogamp.vecmath.Point3f[] v)
addVerticesToGeometryArray in class CustomMeshpublic int[] vertexIndicesOfPoint(org.jogamp.vecmath.Point3f p)
vertexIndicesOfPoint in class CustomMeshpublic int vertexIndexOfPoint(org.jogamp.vecmath.Point3f p)
public void setCoordinate(int i,
org.jogamp.vecmath.Point3f p)
setCoordinate in class CustomMeshpublic void setCoordinates(int[] indices,
org.jogamp.vecmath.Point3f p)
setCoordinates in class CustomMeshpublic void recalculateNormals(org.jogamp.java3d.GeometryArray ga)
recalculateNormals in class CustomMeshprotected void addVertices(org.jogamp.vecmath.Point3f[] v)
addVertices in class CustomMeshprotected void removeVertices(int[] indices)
removeVertices in class CustomMeshpublic void setColor(org.jogamp.vecmath.Color3f color)
setColor in class CustomMeshpublic void setColor(List<org.jogamp.vecmath.Color3f> color)
setColor in class CustomMeshpublic void setColor(int vtxIndex,
org.jogamp.vecmath.Color3f color)
setColor in class CustomMeshpublic void loadSurfaceColorsFromImage(ij.ImagePlus imp)
loadSurfaceColorsFromImage in class CustomMeshpublic void setTransparency(float transparency)
setTransparency in class CustomMeshprotected org.jogamp.java3d.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 org.jogamp.java3d.GeometryArray createGeometry()
createGeometry in class CustomMeshpublic org.jogamp.vecmath.Vector3f[] getNormals()
Copyright © 2010–2025 Fiji. All rights reserved.