8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SFeature.h"
12namespace rsh::ScriptBinding
135 Number meanPointDistance
158 :
public SObjectStatic
222 static Array
FromClick() {
return SComp::GetFromClick<SCone>(SV_CONE); }
228 static Array
FromName( String Name) {
return SComp::GetFromName<SCone>(Name); }
234 static Array
FromSel() {
return SFeature::GetFromSel<SCone>(); }
248 return SComp::GetAll<SCone>(VisCrit);
255Q_DECLARE_METATYPE(SCone::_SConeDummy);
256Q_DECLARE_METATYPE(
SCone);
Circle manipulation class. The SCircle creation can be done by calling the static functions: .
Definition: SCircle.h:24
Cone manipulation class. The SCone creation can be done by calling the static functions: .
Definition: SCone.h:24
Number Distance(SPoint Point)
Returns the distance between a point and the feature <0 if below/inside the feature >0 if above/outsi...
static SCone New(SPoint FirstPt, SPoint SecondPt, SPoint ThirdPt, SPoint FourthPt)
Constructs a new SCone by 4 points.
SCircle GetCircle(Number Height)
returns a circle for a given height value = 0 -> Base Circle 1 -> Top Circle can be lower or upper th...
Boolean SetTopRadius(Number Radius)
modifies the top radius of the cone
Boolean SetBaseRadius(Number Radius)
modifies the base radius of the cone
SetOuter()
To set the SCone to a cone scanned from the outside.
SPoint GetBaseCenter()
returns the base center of the cone
static SCone New()
Default constructor to create an empty new SCone.
SPoint GetTopCenter()
returns the top center of the cone
static Array FromSel()
To get all the selected SComp.
Definition: SCone.h:234
static String toString()
Get the type of the variable.
String toString()
Get the type of the variable.
Number GetSurface()
Returns the surface of the cone.
Boolean SetLength(Number Length)
modifies the length of the cone
Number GetLength()
returns the length of the cone
Boolean IsOuter()
To know if the SCone 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 parameter must be specified at a...
static SCone New(SPoint Center, SVector NormalDir, Number LRadius, Number SRadius, Number Length)
Constructs a new SCone by defining its data.
Number GetAngle()
returns the angle of the cone in radian
SetInner()
To set the SCone to a cone scanned from the inside.
Number GetAngleDegree()
returns the angle of the cone in degrees
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SCone.h:222
static SCone New(SCone Other)
Constructs an SCone by copying Other.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SCone.h:240
Number SetAngle(Number Angle, Boolean ModifyLength)
modifies the angle of the cone in radian
Number GetTopRadius()
returns the top radius of the cone
Number GetBaseRadius()
returns the base radius of the cone
static Array FromName(String Name)
Search all the component with the given name.
Definition: SCone.h:228
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
The mathematical object vector.
Definition: SVector3.h:26