Package org.jmol.util
Class MeshCapper.CapVertex
java.lang.Object
javajs.util.T3
org.jmol.util.MeshCapper.CapVertex
- All Implemented Interfaces:
Serializable
,Cloneable
,javajs.api.JSONEncodable
- Enclosing class:
MeshCapper
A class to provide linked vertices for MeshCapper
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String
for debugging(package private) int
external reference(package private) MeshCapper.CapVertex
(package private) MeshCapper.CapVertex
edge double links(package private) MeshCapper.CapVertex[]
dynamic region pointersprotected MeshCapper.CapVertex
Y-X scan queue forward linkFields inherited from class javajs.util.T3
x, y, z
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clear()
Free all links.cloneV()
private String
for debuggingprotected float
Get interpolated x for the scan line intersection with an edge.protected void
Link this vertex with v or remove it from the chain.toString()
Returns a string that contains the values of this Tuple3f.Methods inherited from class javajs.util.T3
add, add2, add3, ave, cross, distance, distanceSquared, dot, equals, floatToIntBits, hashCode, length, lengthSquared, normalize, scale, scaleAdd2, scaleT, set, setA, setT, sub, sub2, toJSON
-
Field Details
-
ipt
int iptexternal reference -
id
String idfor debugging -
yxNext
Y-X scan queue forward link -
prev
MeshCapper.CapVertex prevedge double links -
next
MeshCapper.CapVertex next -
region
MeshCapper.CapVertex[] regiondynamic region pointers
-
-
Constructor Details
-
CapVertex
CapVertex(javajs.util.T3 p, int i)
-
-
Method Details
-
cloneV
-
interpolateX
Get interpolated x for the scan line intersection with an edge. This method is used both in finding the last point for a split and for checking winding on same-side addition. determine- Parameters:
v1
-v2
-- Returns:
- x
-
link
Link this vertex with v or remove it from the chain.- Parameters:
v
- null to remove
-
clear
protected void clear()Free all links. -
dumpRegion
for debugging- Returns:
- listing of vertices currently in a region
-
toString
Description copied from class:javajs.util.T3
Returns a string that contains the values of this Tuple3f. The form is (x,y,z).- Overrides:
toString
in classjavajs.util.T3
- Returns:
- the String representation
-