2027 Method
Changes 0
M

CompoundStructure.FindEnclosingRegionAndSegments

Description:
Given a pair of grid coordinates, and a direction for splitting, returns the enclosing region and the two segments intersected by a line through the grid point.
Remarks:
Grid coordinates correspond to uv coordinates of faces.
public int FindEnclosingRegionAndSegments(
	UV gridUV,
	RectangularGridSegmentOrientation splitDirection,
	out int segmentId1,
	out int segmentId2
)
  • gridUV
    Coordinates of a point in the rectangular grid of this compound structure.
  • splitDirection
    Specifies the direction of the split.
  • Int32%
    segmentId1
    The id of a segment in the boundary of the containing region which is split by a line through gridUV in the specified direction.
  • Int32%
    segmentId2
    The id of a segment in the boundary of the containing region which is split by a line through gridUV in the specified direction.
Return Value Int32 Returns the id of the enclosing region, and -1 if no region encloses the point.