TerminateAddEdgeWithInteriorPoints
 
 
 

TerminateAddEdgeWithInteriorPoints

Introduced

v4.0

Description

Completes a new edge sequence that started from a point or an edge, that includes one or more points in the interior of the polygon and will now terminate to a a given position along the edge specified.

Scripting Syntax

TerminateAddEdgeWithInteriorPoints( Operator, PolygonID, EdgeID, [Ratio] );

Parameters

Parameter Type Description
Operator String Specifies the add-edge operator used to create the final edge sequence.
PolygonID Integer ID of the polygon
EdgeID Integer ID of the destination edge where the new edge sequence terminates.
Ratio Double Ratio where to split the destination edge.

Default Value: 0.0

Possible Values:

Description:

0 The new edge sequence will terminate to the start point of the destination edge
0 The destination edge will be split accordingly before terminating the new edge sequence.
100 The new edge sequence will terminate to the end point of the destination edge

Examples

VBScript Example

'
' This example uses AddEdge and at some point adds a point in the interior 
' of a quad. The edge is terminated using TerminateAddEdgeWithInteriorPoints 
' to split the edge 3 at 27.8%
'
NewScene , false
CreatePrim "Grid", "MeshSurface"
SetValue "grid.polymsh.geom.subdivu", 1
SetValue "grid.polymsh.geom.subdivv", 1
SplitEdge "grid.edge[1]", 64.9271844660194, False, True, siPersistentOperation
ApplyTopoOp "AddEdge", "grid.pnt[LAST];grid.edge[1];grid.poly[0]"
AddPointInteriorToPolygon "grid.polymsh.addedgeop", 0, 0, 1, 2, 0.394370594438662, 0.102825667243581, 0.502803738317757
TerminateAddEdgeWithInteriorPoints "grid.polymsh.addedgeop", 0, 3, 27.7912621359223

See Also

ApplyOp ConnectNewPolygonToEdge ConnectNewPolygonToPoint AddPointToNewPolygon RemovePointFromPolygon AddPointInteriorToPolygon RemoveLastPointInteriorToPolygon SnapOffsetToPointForSlicePolygons