8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SFeature.h"
12namespace rsh::ScriptBinding
80 Number meanPointDistance
103 :
public SObjectStatic
167 static Array
FromClick() {
return SComp::GetFromClick<SSphere>(SV_SPHERE); }
173 static Array
FromName( String Name) {
return SComp::GetFromName<SSphere>(Name); }
179 static Array
FromSel() {
return SFeature::GetFromSel<SSphere>(); }
193 return SComp::GetAll<SSphere>(VisCrit);
200Q_DECLARE_METATYPE(SSphere::_SSphereDummy);
The SFeature class is an abstract class.
Definition: SFeature.h:19
3D point manipulation class. The SPoint creation can be done by calling the static functions:
Definition: SPoint.h:23
Sphere manipulation class. The SSphere creation can be done by calling the static functions: .
Definition: SSphere.h:24
static SSphere New()
Default constructor to create an empty new SSphere.
static SSphere New(SSphere Other)
Constructs an SSphere by copying Other.
SetRadius(Number Radius)
To set a new radius to the SSphere.
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SSphere.h:167
static SSphere New(SPoint ipFirstPt, SPoint ipSecondPt, SPoint ipThirdPt)
Constructs a new SSphere by 3 points.
Number Distance(SPoint iPoint)
Returns the distance between a point and the feature <0 if below/inside the feature >0 if above/outsi...
String toString()
Get the type of the variable.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SSphere.h:185
Boolean IsOuter()
To know if the SSphere is set to be scanned from the inside or from the outside.
Array Discretize(Number deflection, Number meanPointDistance)
To convert the continuous feature into a discretized SPoly. Only one of the parameters must be specif...
static SSphere New(SPoint FirstPt, SPoint SecondPt)
Constructs a new SSphere by 2 points.
SetInner()
To set the SSphere to a sphere scanned from the inside.
SetOuter()
To set the SSphere to a sphere scanned from the outside.
Number GetSurface()
Returns the surface of the sphere.
static Array FromName(String Name)
Search all the component with the given name.
Definition: SSphere.h:173
static Array FromSel()
To get all the selected SComp.
Definition: SSphere.h:179
static String toString()
Get the type of the variable.
static SSphere New(SPoint Center, Number Radius)
Constructs a new SSphere by defining its data.