Class BallPivoting
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.BallPivoting.AdvancingFront
-
- gov.nih.mipav.view.renderer.WildMagic.BallPivoting.BallPivoting
-
public class BallPivoting extends AdvancingFront
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.view.renderer.WildMagic.BallPivoting.AdvancingFront
AdvancingFront.AdvancingTest
-
-
Field Summary
Fields Modifier and Type Field Description private Point3
baricenter
private StaticGrid
grid
private int
last_seed
(package private) java.util.Vector<Vertex>
left
(package private) java.util.Vector<Vertex>
leftDown
(package private) java.util.Vector<Vertex>
leftUp
float
max_angle
float
max_edge
float
min_edge
float
radius
(package private) java.util.Vector<Vertex>
right
(package private) java.util.Vector<Vertex>
rightDown
(package private) java.util.Vector<Vertex>
rightUp
private int
usedBit
-
Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.BallPivoting.AdvancingFront
deads, front, mesh, nb
-
-
Constructor Summary
Constructors Constructor Description BallPivoting(TriMesh _mesh, float _radius, float minr, float angle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private float
angle(Point3 p, Point3 q, Point3 axis)
void
dispose()
private boolean
findSphere(Point3 p0, Point3 p1, Point3 p2, Point3 center)
int
getInSphereVertex(TriMesh mesh, StaticGrid gr, Point3 _p, float _r, java.util.Vector<Vertex> _objectPtrs, java.util.Vector<java.lang.Float> _distances, java.util.Vector<Point3> _points)
private void
mark(Vertex v)
int
place(FrontEdge edge, FrontEdge[] touch)
float
radi()
boolean
seed(int[] v0, int[] v1, int[] v2)
-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.BallPivoting.AdvancingFront
addFace, addFace, addVertex, buildMesh, checkEdge, checkFrontEdge, computeNormalizedNormal, createLoops, detach, erase, glue, glue, killEdge, moveBack, moveFront, newEdge, normalizedNoraml, seedFace
-
-
-
-
Field Detail
-
radius
public float radius
-
min_edge
public float min_edge
-
max_edge
public float max_edge
-
max_angle
public float max_angle
-
last_seed
private int last_seed
-
usedBit
private int usedBit
-
baricenter
private Point3 baricenter
-
grid
private StaticGrid grid
-
left
java.util.Vector<Vertex> left
-
leftUp
java.util.Vector<Vertex> leftUp
-
leftDown
java.util.Vector<Vertex> leftDown
-
right
java.util.Vector<Vertex> right
-
rightUp
java.util.Vector<Vertex> rightUp
-
rightDown
java.util.Vector<Vertex> rightDown
-
-
Constructor Detail
-
BallPivoting
public BallPivoting(TriMesh _mesh, float _radius, float minr, float angle)
-
-
Method Detail
-
radi
public float radi()
- Specified by:
radi
in classAdvancingFront
-
dispose
public void dispose()
-
getInSphereVertex
public final int getInSphereVertex(TriMesh mesh, StaticGrid gr, Point3 _p, float _r, java.util.Vector<Vertex> _objectPtrs, java.util.Vector<java.lang.Float> _distances, java.util.Vector<Point3> _points)
-
seed
public final boolean seed(int[] v0, int[] v1, int[] v2)
- Specified by:
seed
in classAdvancingFront
-
place
public final int place(FrontEdge edge, FrontEdge[] touch)
- Specified by:
place
in classAdvancingFront
-
mark
private void mark(Vertex v)
-
-