Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2024.
|
Provide cylinder edition and creation methods. More...
Public Member Functions | |
Object | Discretize (number deflection=0, number meanPointDistance=0) |
Convert the cylinder into a discretized SPoly. Only one parameter must be specified at a time. To use the deflection, set a positive value and set 0 to meanPointDistance.To use the mean distance between points, set a positive value and set 0 to deflection. More... | |
number | Distance (SPoint point) |
Return the distance between a point and the cylinder. More... | |
SPoint | GetBaseCenter () |
Return the base center of the cylinder. More... | |
SCircle | GetBaseCircle () |
Return the base circle of the cylinder. More... | |
number | GetLength () |
Return the length of the cylinder. More... | |
number | GetRadius () |
Return the radius of the cylinder. More... | |
number | GetSurface () |
Return the surface of the cylinder. More... | |
SPoint | GetTopCenter () |
Return the top center of the cylinder. More... | |
SCircle | GetTopCircle () |
Return the top circle of the cylinder. More... | |
boolean | IsOuter () |
To know if the SCylinder is set to be scanned from the inside or from the outside. More... | |
SCylinder () | |
Default constructor to create an empty new SCylinder. More... | |
SCylinder (SCylinder other) | |
Construct a SCylinder by copying another SCylinder. More... | |
SCylinder (SPoint center, SVector normalDir, number radius, number length) | |
Construct a custom SCylinder from a given center point, normal direction, radius and length. More... | |
SCylinder (SPoint firstPt, SPoint secondPt, SPoint thirdPt, SPoint fourthPt) | |
Construct a new SCylinder by 4 points. More... | |
SetInner () | |
Set the SCylinder to a cylinder scanned from the inside. More... | |
SetLength (number length) | |
Set the length. More... | |
SetOuter () | |
Set the SCylinder to a cylinder scanned from the outside. More... | |
SetRadius (number radius) | |
Set the radius. More... | |
string | toString () |
Get the type of the variable. More... | |
Public Member Functions inherited from SFeature | |
Object | Compare (SCloud measCloud, number distMax, number mappingObject=1, number maxCosAngle=-2) |
Calculate the distances between 2 components for further inspection purpose (color mapping) More... | |
SPoint | GetCenter () |
Return the center of the feature. More... | |
SVector | GetNormal () |
Return the normal of the feature. More... | |
SetCenter (SPoint center) | |
Set the center. More... | |
SetNormal (SVector normal) | |
Set the normal. More... | |
string | toString () |
Get the type of the variable. More... | |
Public Member Functions inherited from SComp | |
AddToDoc () | |
Add the object to the document. More... | |
ApplyTransformation (SMatrix matrix) | |
Apply a geometric transformation to the current object by making a product with the given matrix. More... | |
Object | GetBoundingBox (SMatrix ucs=null) |
Calculate the bounding box of the object. More... | |
Object | GetColors () |
Get the colors of the object. More... | |
string | GetFolderName () |
Get the name of the folder containing the object. More... | |
string | GetName () |
Return the object's name. More... | |
string | GetPath () |
Return the full path of a SComp in the tree. More... | |
Invert () | |
Invert the normal of the object. More... | |
boolean | IsInDoc () |
Return if the object is in the document or not. More... | |
boolean | IsVisible () |
Get the visibility of the object. More... | |
MoveToGroup (string groupPath, boolean moveInsideTopParent=true) | |
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 () | |
Remove the object from the document. More... | |
SetClippable (boolean clipping) | |
Set clippable or not. More... | |
SetColors (number red, number green, number blue) | |
Set the colors of the object. More... | |
SetName (string objectName) | |
Set the object's name. More... | |
SetTransparency (number alpha) | |
Set the transparency of the object. More... | |
SetVisibility (boolean visible) | |
Set the object to be visible, or not visible. More... | |
string | toString () |
Get the type of the variable. More... | |
Translate (SVector vector) | |
Make a translation of the current object with an SVector. More... | |
Static Public Member Functions | |
static Array< SCylinder > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SCylinder in the document. More... | |
static Object | FromClick () |
Launch an interaction to select a SCylinder in the scene. More... | |
static Array< SCylinder > | FromName (string name) |
Search all the SCylinder with the given name. More... | |
static Array< SCylinder > | FromSel () |
Get all the selected SCylinder. More... | |
static SCylinder | New () |
Default constructor to create an empty new SCylinder. More... | |
static SCylinder | New (SCylinder other) |
Construct a SCylinder by copying another SCylinder. More... | |
static SCylinder | New (SPoint center, SVector normalDir, number radius, number length) |
Construct a custom SCylinder from a given center point, normal direction, radius and length. More... | |
static SCylinder | New (SPoint firstPt, SPoint secondPt, SPoint thirdPt, SPoint fourthPt) |
Construct a new SCylinder by 4 points. More... | |
Static Public Member Functions inherited from SFeature | |
static Array< SFeature > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SFeature in the document. More... | |
static Object | FromBfcFile (string filePath) |
Load a .bfc file. More... | |
static Object | FromClick () |
Launch an interaction to select a SFeature in the scene. More... | |
static Array< SFeature > | FromName (string name) |
Search all the SFeature with the given name. More... | |
static Array< SFeature > | FromSel () |
Get all the selected SFeature. More... | |
Static Public Member Functions inherited from SComp | |
static Array< SComp > | All (VisibilityEnum visCrit=SComp.ANY_VISIBILITY) |
Get all the SComp in the document. More... | |
static Object | FromClick () |
Launch an interaction to select a SComp in the scene. More... | |
static Array< SComp > | FromName (string name) |
Search all the SComp with the given name. More... | |
static Array< SComp > | FromSel () |
Get all the selected SComp. More... | |
Additional Inherited Members | |
Public Types inherited from SComp | |
enum | VisibilityEnum { HIDDEN_ONLY = 0 , VISIBLE_ONLY = 1 , ANY_VISIBILITY = 2 } |
Visible criteria. More... | |
Provide cylinder edition and creation methods.
SCylinder::SCylinder | ( | ) |
Default constructor to create an empty new SCylinder.
SCylinder::SCylinder | ( | SCylinder | other | ) |
Construct a custom SCylinder from a given center point, normal direction, radius and length.
Construct a new SCylinder by 4 points.
|
static |
Get all the SCylinder in the document.
visCrit | (VisibilityEnum) Visible selection criteria
|
Object SCylinder::Discretize | ( | number | deflection = 0 , |
number | meanPointDistance = 0 |
||
) |
Convert the cylinder into a discretized SPoly. Only one parameter must be specified at a time. To use the deflection, set a positive value and set 0 to meanPointDistance.To use the mean distance between points, set a positive value and set 0 to deflection.
deflection | (number) Max deviation between the ideal shape and the discretized element |
meanPointDistance | (number) Mean distance between points/vertices |
number SCylinder::Distance | ( | SPoint | point | ) |
Return the distance between a point and the cylinder.
point | (SPoint) The point from which the distance to the feature has to be calculated |
<0 | Below/inside the feature |
>0 | Above/outside the feature |
|
static |
Launch an interaction to select a SCylinder in the scene.
|
static |
|
static |
SPoint SCylinder::GetBaseCenter | ( | ) |
Return the base center of the cylinder.
SCircle SCylinder::GetBaseCircle | ( | ) |
Return the base circle of the cylinder.
number SCylinder::GetLength | ( | ) |
Return the length of the cylinder.
number SCylinder::GetRadius | ( | ) |
Return the radius of the cylinder.
number SCylinder::GetSurface | ( | ) |
Return the surface of the cylinder.
SPoint SCylinder::GetTopCenter | ( | ) |
Return the top center of the cylinder.
SCircle SCylinder::GetTopCircle | ( | ) |
Return the top circle of the cylinder.
boolean SCylinder::IsOuter | ( | ) |
To know if the SCylinder is set to be scanned from the inside or from the outside.
true | The cylinder was defined as being scanned from the outside |
false | The cylinder was defined as being scanned from the inside |
|
static |
|
static |
Construct a custom SCylinder from a given center point, normal direction, radius and length.
|
static |
Construct a new SCylinder by 4 points.
SCylinder::SetInner | ( | ) |
Set the SCylinder to a cylinder scanned from the inside.
SCylinder::SetLength | ( | number | length | ) |
Set the length.
length | (number) The length to set |
SCylinder::SetOuter | ( | ) |
Set the SCylinder to a cylinder scanned from the outside.
SCylinder::SetRadius | ( | number | radius | ) |
Set the radius.
radius | (number) The radius to set |
string SCylinder::toString | ( | ) |
Get the type of the variable.