new ConnectionData()
Creates a new connection data instance.
Members
-
:boolean
hasConnectionData <readonly>
-
A flag identifying this object as containing face-based connection data.
Type
- boolean
-
:Array.<THREE.Vector3, THREE.Vector3>
incomingEdge
-
An array with the inner and outer points at the base of the incoming edge.
Type
- Array.<THREE.Vector3, THREE.Vector3>
-
:boolean
isConnectionData <readonly>
-
A flag identifying this object as face-based connection data.
Type
- boolean
-
:Array.<THREE.THREE.Vector3, THREE.Vector3>
outgoingEdge
-
An array with the inner and outer points at the base of the outgoing edge.
Type
- Array.<THREE.THREE.Vector3, THREE.Vector3>
Methods
-
computeIncomingCenter(result)
-
Calculates the center point of the incoming face.
Parameters:
Name Type Description resultTHREE.Vector3 A 3D vector to receive the computed center point.
Returns:
Returns the given vector.
- Type
- THREE.Vector3
-
computeOutgoingCenter(result)
-
Calculates the center point of the outgoing face.
Parameters:
Name Type Description resultTHREE.Vector3 A 3D vector to receive the computed center point.
Returns:
Returns the given vector.
- Type
- THREE.Vector3
-
copy(source)
-
Copies connection data from the given source.
Parameters:
Name Type Description sourcePD.ConnectionData The connection data instance to copy from
Returns:
Returns this connection data to support method chaining.
- Type
- PD.ConnectionData
-
copyIncomingFace(source)
-
Copies just the incoming face connection data from the given source.
Parameters:
Name Type Description sourcePD.ConnectionData The connection data instance to copy from
Returns:
Returns this connection data to support method chaining.
- Type
- PD.ConnectionData
-
copyOutgoingFace(source)
-
Copies just the outgoing face connection data from the given source.
Parameters:
Name Type Description sourcePD.ConnectionData The connection data instance to copy from
Returns:
Returns this connection data to support method chaining.
- Type
- PD.ConnectionData
-
sameDirection(outgoingEdge, incomingEdge) <static>
-
Computes whether or not the vectors defined by the two pairs of points are oriented in the same direction.
Parameters:
Name Type Description outgoingEdgeArray.<THREE.Vector3> The outgoing face of the from connector.
incomingEdgeArray.<THREE.Vector3> The incoming face of the to connector.
Returns:
Returns true if both connector are oriented in the same direction.
- Type
- boolean