|
static Array | All (Number VisCrit) |
| To get all the SComp in the document. More...
|
|
static Array | FromClick () |
| Displays a dialog box to select an SComp in the scene. More...
|
|
static Array | FromName (String Name) |
| Search all the component with the given name. More...
|
|
static Array | FromSel () |
| To get all the selected SComp. More...
|
|
SVector | GetAxisX () |
|
SVector | GetAxisY () |
|
SVector | GetAxisZ () |
|
SPoint | GetCenter () |
| Set the center of the clipping box. More...
|
|
Number | GetHeight () |
| Get the height of the clipping box. More...
|
|
Number | GetLength () |
| Get the length of the clipping box. More...
|
|
Number | GetVolume () |
|
Number | GetWidth () |
| Get the width of the clipping box. More...
|
|
static SClippingBox | New () |
| Default constructor to create a default clipping box of size 1. More...
|
|
static SClippingBox | New (Array< SComp > TblElm) |
| Constructs a new SClippingBox corresponding to the bounding box of all the table of element. More...
|
|
static SClippingBox | New (SClippingBox Other) |
| Constructs an SBox by copying the SClippingBox Other. More...
|
|
static SClippingBox | New (SPoint FirstPt, SPoint SecondPt, SPoint ThirdPt, SPoint FourthPt) |
| Constructs a new SClippingBox by 3 points. More...
|
|
| SetCenter (SPoint iNewCenter) |
| Set the center of the clipping box. More...
|
|
| SetHeight (Number iHeight) |
| Set the height for the clipping box. More...
|
|
| SetLength (Number iLength) |
| Set the length for the clipping box. More...
|
|
| SetWidth (Number iWidth) |
| Set the width for the clipping box. More...
|
|
String | toString () |
| Get the type of the variable. More...
|
|
static String | toString () |
| Get the type of the variable. More...
|
|
| ActivateInAllScenes () |
| Activate the clipping object in all scenes of its document. More...
|
|
| ActivateInScene (uint iSceneIndex) |
| Activate the clipping object in a given scene. More...
|
|
static Array | All (Number VisCrit) |
| To get all the SClipping in the document. More...
|
|
| Clip (SComp Comp) |
| Clip a SComp. More...
|
|
| ClipAll () |
| Clip all SComp in the current document. More...
|
|
| ClipTable (Array< SComp > CompTable) |
| Clip a table of SComp. More...
|
|
| DeactivateInAllScenes () |
| Deactivate the clipping object in all scenes of its document. More...
|
|
| DeactivateInScene (uint iSceneIndex) |
| Deactivate the clipping object in a given scene. More...
|
|
static Array | FromClick () |
| Displays a dialog box to select an SClipping in the scene. More...
|
|
static Array | FromName (String Name) |
| Search all the component with the given name. More...
|
|
static Array | FromSel () |
| To get all the selected SClipping. More...
|
|
static Array | GetAllActivated (Number VisCrit) |
| To get all activated SClipping in the document in the current scene. More...
|
|
String | toString () |
| Get the type of the variable. More...
|
|
static String | toString () |
| Get the type of the variable. More...
|
|
| Unclip (SComp Comp) |
| Unclip a SComp. More...
|
|
| UnclipAll () |
| Unclip all SComp in the current document. More...
|
|
| UnclipTable (Array< SComp > CompTable) |
| Unclip a table of SComp. More...
|
|
| AddToDoc () |
| To add the object to the document. More...
|
|
static Array | All (Number VisCrit) |
| To get all the SComp in the document. More...
|
|
| ApplyTransformation (SMatrix Matrix) |
| To apply a geometric transformation to the current object by making a product with the given matrix. More...
|
|
| Clear () |
| To deallocate object memory. More...
|
|
static Array | FromClick () |
| Displays a dialog box to select an SComp in the scene. More...
|
|
static Array | FromName (String Name) |
| Search all the component with the given name. More...
|
|
static Array | FromSel () |
| To get all the selected SComp. More...
|
|
Array | GetBoundingBox () |
| Calculates the bounding box of the component. More...
|
|
Array | GetColors () |
| To get the colors of the component. More...
|
|
String | GetFolderName () |
|
String | GetName () |
|
| Invert () |
| Normal of the component is inverted. More...
|
|
Boolean | IsInDoc () |
| Return if the component is in the document or not. More...
|
|
Boolean | IsVisible () |
|
| MoveToGroup (String GroupPath, Boolean MoveInsideTopParent) |
| Move the object to the document group represent by the given path. If some groups, in the path, don't exist, they will be created. More...
|
|
| RemoveFromDoc () |
| To remove the object from the document. More...
|
|
| SetClippable (Boolean clipping) |
| Set clippable or not. More...
|
|
| SetColors (Number Red, Number Green, Number Blue) |
| Sets the colors of the component. More...
|
|
| SetName (String ComponentName) |
| To set the component's name. More...
|
|
| SetRepresentationType (RepresentationTypeEnum Representation) |
| The shading type of the component is modified. More...
|
|
| SetTransparency (Number Alpha) |
| Sets the transparency of the component. More...
|
|
| SetVisibility (Boolean Visible) |
| Sets the component to be visible, or not visible. More...
|
|
String | toString () |
| Get the type of the variable. More...
|
|
String | toString () |
| Get the type of the variable. More...
|
|
| Translate (SVector Vector) |
| To make a translation of the current object with an SVector. More...
|
|
| Clear () |
| To deallocate memory of the object. More...
|
|
String | toString () |
| Get the type of the variable. More...
|
|
ClippingBox manipulation class. The SClippingBox creation can be done by calling the static functions:
.
- New() to create your own empty Clipping box.
- New() to copy an existing Clipping box.
- New() to create a new Clipping box with a table of SComp.
- New() to create a new Clipping box by a corner and 3 points for the 3 directions.
var simpleClip = SClippingBox.New();
var clip = SClippingBox.New(SPoint.New(10, 10, 10), SPoint.New(15, 0, 0), SPoint.New(10, -20, 10), SPoint.New(10, 10, -25));
var copyClip = SClippingBox.New(clip);
var sphere = SSphere.New(SPoint.New(1, 1, 1), 10);
var clipByComp = SClippingBox.New([sphere]);