|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jcae.mesh.amibe.ds.Vertex org.jcae.mesh.amibe.patch.Vertex2D
public class Vertex2D
Vertex of a mesh. When meshing a CAD surface, a vertex has two parameters and a metrics in its tangent plane is computed so that a unit mesh in this metrics comply with user constraints. When the underlying surface is defined by the 3D mesh itself, a vertex has three parameters and the surface is locally interpolated by a quadrics computed from vertex neighbours.
Field Summary |
---|
Fields inherited from class org.jcae.mesh.amibe.ds.Vertex |
---|
label, link, param, ref1d, traits, traitsBuilder |
Constructor Summary | |
---|---|
protected |
Vertex2D(VertexTraitsBuilder vtb)
|
|
Vertex2D(VertexTraitsBuilder vtb,
double u,
double v)
Create a Vertex for a 2D mesh. |
Method Summary | |
---|---|
void |
centroid(Vertex2D[] v)
Move to the 2D centroid of a list of vertices. |
void |
clearMetrics()
Clear the 2D Riemannian metrics at this point. |
long |
distance2(Mesh2D mesh,
Vertex2D that)
|
Metric2D |
getMetrics(Mesh2D mesh)
Get the 2D Riemannian metrics at this point. |
double[] |
getNormal(Mesh2D mesh)
Get the normal to the surface at this location. |
VirtualHalfEdge2D |
getSurroundingOTriangle(Mesh2D mesh)
Return a triangle containing this point. |
boolean |
inCircleTest2(Mesh2D mesh,
VirtualHalfEdge2D ot)
|
boolean |
inCircleTest3(Mesh2D mesh,
VirtualHalfEdge2D ot)
|
boolean |
isPseudoIsotropic(Mesh2D mesh)
|
boolean |
isSmallerDiagonale(Mesh2D mesh,
VirtualHalfEdge2D ot)
|
static Vertex2D |
middle(Vertex2D pt1,
Vertex2D pt2)
Create a Vertex in the middle of two 2D Vertex. |
void |
moveTo(double u,
double v)
Set the coordinates of this Vertex (2D). |
long |
onLeft(Mesh2D mesh,
Vertex2D v1,
Vertex2D v2)
Test the position of this vertex with respect to a segment. |
java.lang.String |
toString()
|
static Vertex2D |
valueOf(MNode1D pt,
CADGeomCurve2D C2d,
CADFace F)
Create a Vertex from a boundary node. |
Methods inherited from class org.jcae.mesh.amibe.ds.Vertex |
---|
angle3D, copy, discreteCurvatureDirections, discreteCurvatures, discreteProject, distance3D, getIncidentAbstractHalfEdge, getLabel, getLink, getLocalQuadric, getMatrix3DLocalFrame, getNeighboursNodes, getRef, getUV, isManifold, isMutable, isReadable, isWritable, moveTo, outer3D, projectQuadric, setLabel, setLink, setLinkFan, setReadable, setRef, setWritable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Vertex2D(VertexTraitsBuilder vtb)
public Vertex2D(VertexTraitsBuilder vtb, double u, double v)
vtb
- traits builderu
- first coordinate.v
- second coordinate.Method Detail |
---|
public static Vertex2D middle(Vertex2D pt1, Vertex2D pt2)
pt1
- first node.pt2
- second node.public static Vertex2D valueOf(MNode1D pt, CADGeomCurve2D C2d, CADFace F)
pt
- node on a boundary edge.C2d
- 2D curve on the face.F
- topological face.public void moveTo(double u, double v)
u
- first coordinate of the new positionv
- second coordinate of the new positionpublic double[] getNormal(Mesh2D mesh)
public void centroid(Vertex2D[] v)
v
- arraypublic VirtualHalfEdge2D getSurroundingOTriangle(Mesh2D mesh)
Mesh.outerVertex
.
VirtualHalfEdge2D.split3(org.jcae.mesh.amibe.patch.Mesh2D, org.jcae.mesh.amibe.patch.Vertex2D, java.util.Set, boolean)
public long onLeft(Mesh2D mesh, Vertex2D v1, Vertex2D v2)
getSurroundingOTriangle(org.jcae.mesh.amibe.patch.Mesh2D)
to find the triangle enclosing a vertex, or by
VirtualHalfEdge2D.forceBoundaryEdge(Mesh2D,Vertex2D)
to compute
segment intersection.
mesh
- underlying Mesh2D instancev1
- first vertex of the segmentv2
- second vertex of the segment
public final boolean inCircleTest2(Mesh2D mesh, VirtualHalfEdge2D ot)
public final boolean inCircleTest3(Mesh2D mesh, VirtualHalfEdge2D ot)
public final boolean isSmallerDiagonale(Mesh2D mesh, VirtualHalfEdge2D ot)
public boolean isPseudoIsotropic(Mesh2D mesh)
public final long distance2(Mesh2D mesh, Vertex2D that)
public Metric2D getMetrics(Mesh2D mesh)
clearMetrics()
.
mesh
- underlying Mesh2D instance
public void clearMetrics()
public java.lang.String toString()
toString
in class Vertex
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |