v4.0
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.
TerminateAddEdgeWithInteriorPoints( Operator, PolygonID, EdgeID, [Ratio] ); |
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
|
' ' 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 |
ApplyOp ConnectNewPolygonToEdge ConnectNewPolygonToPoint AddPointToNewPolygon RemovePointFromPolygon AddPointInteriorToPolygon RemoveLastPointInteriorToPolygon SnapOffsetToPointForSlicePolygons