Module org.jeometry.algorithm
Class DelaunayVertice<T extends Point3D>
java.lang.Object
org.jeometry.geom3D.algorithm.delaunay.clarkson.DelaunayVertice<T>
- Type Parameters:
T- The type of underlying 3D points
- All Implemented Interfaces:
Coord3D,Point3D,SpatialLocalization3D,Vector
public class DelaunayVertice<T extends Point3D> extends Object implements Point3D
An implementation of
Point3D than embeed delaunay computation needed informations.- Since:
- 1.0.0
- Author:
- Julien Seinturier - (c) 2016 - JOrigin project - http:/www.jorigin.org
-
Field Summary
Fields inherited from interface org.jeometry.geom3D.point.Coord3D
DIMENSION_H, DIMENSION_X, DIMENSION_Y, DIMENSION_Z -
Constructor Summary
Constructors Constructor Description DelaunayVertice()Create a new vertex.DelaunayVertice(double x, double y, double z)Create a new vertex. -
Method Summary
Modifier and Type Method Description booleanaddFace(IndexedFace<T> face)Attach this point to the givenmesh face.booleanaddTetrahedron(DelaunayTetrahedron<T> tetrahedron)Attach this point to the giventetrahedron.Point3Dcross(Point3D point)Point3Dcross(Point3D point, Point3D result)doubledistance(SpatialLocalization3D spatial)Point3Ddivide(double scalar)Point3Ddivide(double scalar, Point3D result)Vectordivide(double scalar, Vector result)Vectordivide(Vector v)Vectordivide(Vector v, Vector result)Point3DdivideAffect(double scalar)VectordivideAffect(Vector v)doubledot(Point3D point)doubledot(Vector v)Vectorextract(int start, int length)intgetDimension()doublegetH()Map<String,Object>getUserProperties()Get the user properties attached to this point.doublegetValue(int dimension)double[]getValues()double[]getValues(double[] components)doublegetX()doublegetXMax()doublegetXMin()doublegetY()doublegetYMax()doublegetYMin()doublegetZ()doublegetZMax()doublegetZMin()Point3Dminus(double scalar)Point3Dminus(double scalar, Point3D result)Vectorminus(double scalar, Vector result)Point3Dminus(Point3D point)Point3Dminus(Point3D point, Point3D result)Vectorminus(Vector v)Vectorminus(Vector v, Vector result)Point3DminusAffect(double scalar)Point3DminusAffect(Point3D point)DelaunayVertice<T>minusAffect(Vector v)Point3Dmultiply(double scalar)Point3Dmultiply(double scalar, Point3D result)Vectormultiply(double scalar, Vector result)Vectormultiply(Vector v)Vectormultiply(Vector v, Vector result)Point3DmultiplyAffect(double scalar)VectormultiplyAffect(Vector v)doublenorm()voidnormalize()doublenormSquare()Point3Dorthogonal()Point3Dorthogonal(Vector result)Point3Dplus(double scalar)Point3Dplus(double scalar, Point3D result)Vectorplus(double scalar, Vector result)Point3Dplus(Point3D point)Point3Dplus(Point3D point, Point3D result)Vectorplus(Vector v)Vectorplus(Vector v, Vector result)Point3DplusAffect(double scalar)Point3DplusAffect(Point3D point)DelaunayVertice<T>plusAffect(Vector v)voidsetH(double h)voidsetUserProperty(String key, Object value)Set a user property for this point.voidsetValue(int dimension, double value)voidsetValues(double value)voidsetValues(double[] components)voidsetValues(double x, double y, double z)voidsetValues(Point3D point)voidsetValues(Matrix matrix)voidsetValues(Vector v)voidsetX(double x)voidsetY(double y)voidsetZ(double z)voidupdateLocalization()
-
Constructor Details
-
DelaunayVertice
public DelaunayVertice()Create a new vertex. -
DelaunayVertice
public DelaunayVertice(double x, double y, double z)Create a new vertex.- Parameters:
x- the x coordinatey- the y coordinatez- the z coordinate
-
-
Method Details
-
getX
public double getX()- Specified by:
getXin interfaceCoord3D- Specified by:
getXin interfaceSpatialLocalization3D
-
setX
public void setX(double x) -
getY
public double getY()- Specified by:
getYin interfaceCoord3D- Specified by:
getYin interfaceSpatialLocalization3D
-
setY
public void setY(double y) -
getZ
public double getZ()- Specified by:
getZin interfaceCoord3D- Specified by:
getZin interfaceSpatialLocalization3D
-
setZ
public void setZ(double z) -
getH
public double getH() -
setH
public void setH(double h) -
norm
public double norm() -
normSquare
public double normSquare()- Specified by:
normSquarein interfaceCoord3D- Specified by:
normSquarein interfaceVector
-
normalize
public void normalize() -
getDimension
public int getDimension()- Specified by:
getDimensionin interfaceVector
-
getValue
public double getValue(int dimension) -
setValue
public void setValue(int dimension, double value) -
multiply
- Specified by:
multiplyin interfaceVector- Throws:
IllegalArgumentException
-
getXMin
public double getXMin()- Specified by:
getXMinin interfaceSpatialLocalization3D
-
getYMin
public double getYMin()- Specified by:
getYMinin interfaceSpatialLocalization3D
-
getZMin
public double getZMin()- Specified by:
getZMinin interfaceSpatialLocalization3D
-
getXMax
public double getXMax()- Specified by:
getXMaxin interfaceSpatialLocalization3D
-
getYMax
public double getYMax()- Specified by:
getYMaxin interfaceSpatialLocalization3D
-
getZMax
public double getZMax()- Specified by:
getZMaxin interfaceSpatialLocalization3D
-
distance
- Specified by:
distancein interfaceSpatialLocalization3D
-
updateLocalization
public void updateLocalization()- Specified by:
updateLocalizationin interfaceSpatialLocalization3D
-
orthogonal
- Specified by:
orthogonalin interfaceCoord3D- Specified by:
orthogonalin interfacePoint3D- Specified by:
orthogonalin interfaceVector
-
orthogonal
- Specified by:
orthogonalin interfaceCoord3D- Specified by:
orthogonalin interfacePoint3D- Specified by:
orthogonalin interfaceVector
-
cross
-
cross
-
dot
-
plus
-
plus
-
plus
-
plus
-
plus
-
minus
-
minus
-
minus
-
minus
-
minus
-
plusAffect
- Specified by:
plusAffectin interfacePoint3D
-
plusAffect
- Specified by:
plusAffectin interfacePoint3D- Specified by:
plusAffectin interfaceVector
-
minusAffect
- Specified by:
minusAffectin interfacePoint3D
-
minusAffect
- Specified by:
minusAffectin interfacePoint3D- Specified by:
minusAffectin interfaceVector
-
multiply
-
multiply
-
multiplyAffect
- Specified by:
multiplyAffectin interfacePoint3D- Specified by:
multiplyAffectin interfaceVector
-
divide
-
divide
- Specified by:
dividein interfaceVector- Throws:
IllegalArgumentException
-
divide
-
divideAffect
- Specified by:
divideAffectin interfacePoint3D- Specified by:
divideAffectin interfaceVector
-
setUserProperty
Set a user property for this point.- Parameters:
key- the key of the property.value- the value of the property.
-
getUserProperties
Get the user properties attached to this point.- Returns:
- the user properties attached to this point.
-
addTetrahedron
Attach this point to the giventetrahedron.- Parameters:
tetrahedron- the tetrahedron attached to this point.- Returns:
trueif this point is successfully attached to the tetrahedron andfalseotherwise.
-
addFace
Attach this point to the givenmesh face.- Parameters:
face- the face to attach to this point.- Returns:
trueif this point is successfully attached to the face andfalseotherwise.
-
setValues
-
getValues
public double[] getValues() -
getValues
public double[] getValues(double[] components) -
setValues
public void setValues(double[] components) -
extract
-
setValues
public void setValues(double value) -
setValues
-
plus
-
plus
-
plusAffect
- Specified by:
plusAffectin interfaceVector
-
minus
-
minus
-
minusAffect
- Specified by:
minusAffectin interfaceVector
-
multiply
-
multiply
-
multiplyAffect
- Specified by:
multiplyAffectin interfaceVector
-
divide
-
divide
-
divideAffect
- Specified by:
divideAffectin interfaceVector
-
dot
-
setValues
public void setValues(double x, double y, double z) -
setValues
-