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) Stringfor debugging(package private) intexternal reference(package private) MeshCapper.CapVertex(package private) MeshCapper.CapVertexedge double links(package private) MeshCapper.CapVertex[]dynamic region pointersprotected MeshCapper.CapVertexY-X scan queue forward linkFields inherited from class javajs.util.T3
x, y, z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclear()Free all links.cloneV()private Stringfor debuggingprotected floatGet interpolated x for the scan line intersection with an edge.protected voidLink 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.T3Returns a string that contains the values of this Tuple3f. The form is (x,y,z).- Overrides:
toStringin classjavajs.util.T3- Returns:
- the String representation
-