public class Scene3DUnindexedMeshGeometry extends Object implements Scene3DMeshGeometry
Constructor and Description |
---|
Scene3DUnindexedMeshGeometry(float[] vertices,
float[] normals)
Creates a mesh object
|
Scene3DUnindexedMeshGeometry(Scene3DUnindexedMeshGeometry 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 |
setVertices(float[] vertices) |
Scene3DIndexedMeshGeometry |
toIndexedMeshGeometry(JIPipeProgressInfo progressInfo)
Converts this unindexed mesh geometry into an optimized, indexed mesh geometry
|
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 Scene3DUnindexedMeshGeometry(float[] vertices, float[] normals)
vertices
- the vertices (unindexed, 9 values per vertex)normals
- the normals (9 values per vertex)public Scene3DUnindexedMeshGeometry(Scene3DUnindexedMeshGeometry 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 int[] getNormalsIndex()
getNormalsIndex
in interface Scene3DMeshGeometry
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 colorpublic Scene3DIndexedMeshGeometry toIndexedMeshGeometry(JIPipeProgressInfo progressInfo)
progressInfo
- the progress infoCopyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.