public class Scene3DIndexedMeshGeometry extends Object implements Scene3DMeshGeometry
Constructor and Description |
---|
Scene3DIndexedMeshGeometry(float[] vertices,
float[] normals,
int[] verticesIndex,
int[] normalsIndex)
Creates a mesh object
|
Scene3DIndexedMeshGeometry(Scene3DIndexedMeshGeometry other) |
Modifier and Type | Method and Description |
---|---|
Scene3DNode |
duplicate()
Duplicates the node
|
Color |
getColor()
Gets the color of this geometry
|
String |
getName()
Gets the name of this node
|
float[] |
getNormals() |
int[] |
getNormalsIndex() |
int |
getNumVertices() |
float[] |
getVertices() |
int[] |
getVerticesIndex() |
void |
setColor(Color color)
Sets the color of this geometry
|
void |
setName(String name)
Sets the name of this node
|
void |
setNormals(float[] normals) |
void |
setNormalsIndex(int[] normalsIndex) |
void |
setVertices(float[] vertices) |
void |
setVerticesIndex(int[] verticesIndex) |
Scene3DMeshGeometry |
toMeshGeometry(JIPipeProgressInfo progressInfo)
Returns a mesh equivalent of this geometry
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copyMetadataFrom
public Scene3DIndexedMeshGeometry(float[] vertices, float[] normals, int[] verticesIndex, int[] normalsIndex)
vertices
- the vertices (indexed)normals
- the normals (indexed)verticesIndex
- the vertex indexnormalsIndex
- the normals indexpublic Scene3DIndexedMeshGeometry(Scene3DIndexedMeshGeometry other)
public Scene3DNode duplicate()
Scene3DNode
duplicate
in interface Scene3DNode
public Scene3DMeshGeometry toMeshGeometry(JIPipeProgressInfo progressInfo)
Scene3DGeometry
toMeshGeometry
in interface Scene3DGeometry
progressInfo
- the progress infopublic float[] getVertices()
getVertices
in interface Scene3DMeshGeometry
public void setVertices(float[] vertices)
public float[] getNormals()
getNormals
in interface Scene3DMeshGeometry
public void setNormals(float[] normals)
public int[] getVerticesIndex()
getVerticesIndex
in interface Scene3DMeshGeometry
public void setVerticesIndex(int[] verticesIndex)
public int[] getNormalsIndex()
getNormalsIndex
in interface Scene3DMeshGeometry
public void setNormalsIndex(int[] normalsIndex)
public String getName()
Scene3DNode
getName
in interface Scene3DNode
public void setName(String name)
Scene3DNode
setName
in interface Scene3DNode
name
- the namepublic int getNumVertices()
getNumVertices
in interface Scene3DMeshGeometry
public Color getColor()
Scene3DGeometry
getColor
in interface Scene3DGeometry
public void setColor(Color color)
Scene3DGeometry
setColor
in interface Scene3DGeometry
color
- the colorCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.