Package eu.mihosoft.vrl.v3d
Class Vertex
java.lang.Object
eu.mihosoft.vrl.v3d.Vertex
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()booleanvoidflip()Inverts all orientation-specific data.doubleinthashCode()interpolate(Vertex other, double t) Create a new vertex between this vertex and the specified vertex by linearly interpolating all properties using a parameter t.voidsetWeight(double weight) Returns this vertex in OBJ string format.Returns this vertex in OBJ string format.Returns this vertex in STL string format.Returns this vertex in STL string format.toString()Applies the specified transform to this vertex.transformed(Transform transform) Applies the specified transform to a copy of this vertex.
- 
Field Details- 
posVertex position.
- 
normalNormal.
 
- 
- 
Constructor Details- 
VertexConstructor. Creates a vertex.- Parameters:
- pos- position
- normal- normal
 
 
- 
- 
Method Details- 
clone
- 
flippublic void flip()Inverts all orientation-specific data. (e.g. vertex normal).
- 
interpolateCreate a new vertex between this vertex and the specified vertex by linearly interpolating all properties using a parameter t.- Parameters:
- other- vertex
- t- interpolation parameter
- Returns:
- a new vertex between this and the specified vertex
 
- 
toStlStringReturns this vertex in STL string format.- Returns:
- this vertex in STL string format
 
- 
toStlStringReturns this vertex in STL string format.- Parameters:
- sb- string builder
- Returns:
- the specified string builder
 
- 
toObjStringReturns this vertex in OBJ string format.- Parameters:
- sb- string builder
- Returns:
- the specified string builder
 
- 
toObjStringReturns this vertex in OBJ string format.- Returns:
- this vertex in OBJ string format
 
- 
transformApplies the specified transform to this vertex.- Parameters:
- transform- the transform to apply
- Returns:
- this vertex
 
- 
transformedApplies the specified transform to a copy of this vertex.- Parameters:
- transform- the transform to apply
- Returns:
- a copy of this transform
 
- 
getWeightpublic double getWeight()- Returns:
- the weight
 
- 
setWeightpublic void setWeight(double weight) - Parameters:
- weight- the weight to set
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-