EdgeModifier.EdgeModify

This page contains reference documentation for the EdgeModify member. This member sets or gets the mode that the edge modifier operates in. Possible modes are 0 (Split), 1 (ClipPlane), 2 (Insert), 3 (Collapse), or 4 (Scale).

Declaration

int EdgeModify;

Examples

Examples are as follows:

EdgeModifier modifier = new EdgeModifier;

// Set EdgeModify to split the edge at its center.

modifier.Name = "SplitEdgeModifier";
modifier.EdgeModify = 0;
modifier.SplitAlpha = 50;

// Set EdgeModify to split the edge by using the grid as the scissor plane.

modifier.Name = "SplitEdgeWithGridModifier";
modifier.EdgeModify = 1;

// EdgeModify mode 2 is NULL.

modifier.Name = "NULL";
modifier.EdgeModify = 2;

// Set EdgeModify to collapse the edge to its center.

modifier.Name = "CollapseEdgeModifier";
modifier.EdgeModify = 3;
modifier.SplitAlpha = 50;

// Set EdgeModify to collapse the edge to a position expressed as 25% of the edge's length.

modifier.Name = "CollapseEdgeModifier";
modifier.EdgeModify = 3;
modifier.SplitAlpha = 50;

// Set EdgeModify to collapse the edge to a position expressed as 75% of the edge's length.

modifier.Name = "CollapseEdgeModifier";
modifier.EdgeModify = 3;
modifier.SplitAlpha = 50;

// Set EdgeModify to scale the edge from its center, while maintaining the edge's orientation in world-space.

modifier.Name = "ScaleEdgeModifier";
modifier.EdgeModify = 4;
modifier.SplitAlpha = 50;

// Set EdgeModify to scale the edge from a position expressed as 75% of the edge's length while maintaining the edge's orientation in world-space.

modifier.Name = "ScaleEdgeModifier";
modifier.EdgeModify = 4;
modifier.SplitAlpha = 75;

Working Sample Code

For sample code: