Cut Section

xShowSection

Enables cut section view.

bool xShowSection(bool bSwitchON)

return

Returns True, if successfully switched ON or OFF the section plane.

Returns False, if failed.

bSwitchON

Set True to switch ON cut section False to switch OFF.

xSetSectionPlane

Create and sets the section plane with given coefficients of plane equation. If the plane equation is, Ax+By+Cz+D=0, then user should pass these A, B, C and D values as parameters.

Note: user should call section switch ON method explicitly to visualize the section.

bool xSetSectionPlane(float fA, float fB, float fC, float fD)

return

Returns True, if successfully creates the section.

Returns False, if any invalid expression / result / instance name.

fA

Coefficient of X axis in plane equation (Ax+By+Cz+D=0).

fB

Coefficient of Y-axis in-plane equation (Ax+By+Cz+D=0).

fC

Coefficient of Z axis in plane equation (Ax+By+Cz+D=0).

fD

Constant part of plane equation (Ax+By+Cz+D=0).

pxGetSectionPlane

Gets plane by its coefficient values A, B, C, D from Ax+By+Cz+D=0.

List<float> pxGetSectionPlane()

return

Returns float value array of size 4, if successful.

Returns empty array if failed.

retArray[0] = Coefficient of X axis
retArray[1] = Coefficient of Y axis
retArray[2] = Coefficient of Z axis
retArray[3] = Constant part of plane equation

xSetSectionAttribs

Sets different attributes of Cut Section plane.

bool xSetSectionAttribs(bool bShowPlane, bool bSlice, bool bEdges, bool bInvert, bool bCap, bool bClosedParts)

return

Returns True, if successfully sets proper section plane attributes.

Returns False, if failed.

bShowPlane

Sets visibility flag to section planes.

bSlice

Enables or Removes slice plane.

bEdges

Show or hides Section and Model intersection edges.

bInvert

Toggles cut section culling side.

bCap

This flag decides if the closed region should be shaded or not.

bClosedParts

Identifies the closed region is from whether solid or hollow part. If the part is solid, the region will be considered for cap, else not.

pxGetSectionAttribs

Gets plane by its coefficient values A, B, C, D from Ax+By+Cz+D=0.

List<int> pxGetSectionAttribs()

return

Returns integer array of size 6. if successful. Each value is considered as boolean (True, If the value is 1 or non-zero and False, if the value is 0).

Returns empty array if failed.

retArray[0] = Section plane visibility flag
retArray[1] = Slice plane existence flag
retArray[2] = Section Edges visibility flag
retArray[3] = Culling side flag
retArray[4] = Capping flag for closed region
retArray[5] = Capping additional flag for solid part

xSetSectionSliceOffset

Sets offset distance of slice plane from prime section plane.

bool xSetSectionSliceOffset(float fOffset)

return

Returns True, if successfully sets offset distance to slice plane.

Returns False, if failed.

fOffset

Offset distance to be set to slice plane.

xGetSectionSliceOffset

Gets offset distance of slice plane from prime section plane.

float xGetSectionSliceOffset()

return

Returns slice plane offset distance from the prime section plane.

xSetSectionCapColor

Sets RGB color to section cap. RGB component values should be in the range [0,1].

bool xSetSectionCapColor(float fR, float fG, float fB, float fA)

return

Returns True, if successfully sets the color.

Returns False, if failed.

fR

The red component of RGB color.

fG

The green component of RGB color.

fB

The blue component of RGB color.

fA

The alpha component of RGB color.

pxGetSectionCapColor

Gets RGB color to section cap. RGB component values should be in the range [0,1].

List<float> pxGetSectionCapColor()

return

Returns float value array of size 4 for RGBA color components in the range [0,1].

Returns empty array, if failed.

retArray[0] = Red component value of RGBA
retArray[1] = Green component value of RGBA
retArray[2] = Blue component value of RGBA
retArray[3] = Alpha component value of RGBA

xSetClippingPlanes

Constructs 6 planes from the input and Culls the outbound elements of current model.

bool xSetClippingPlanes(List<float> boundingData)

return

Returns True, if successfully constructs. False otherwise.

boundingData

It is an array of bounding data as follows.

Case 1: array of size (4)

Array[0-2] – center of bounding
Array[3] – offset distance of the planes from center

Case 2: array of size (6)

Array[0-2] – min point of bounding
Array[3-5] – max point of bounding

Case 2: array of size (24)

Array[0-2] – point 1
Array[3-5] – point 2
…
Array[21-23] – point 8

xClearClippingPlanes

Clears the set clipping planes.

bool xClearClippingPlanes()

return

Returns True, if successfully clears the planes. False otherwise.

xIsSectionON

Gets the information if cut section is ON or OFF.

bool xIsSectionON()

return

Returns True, if cut section is ON. False if cut section is OFF.