8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SFeature.h"
12namespace rsh::ScriptBinding
71 Number meanPointDistance
114 :
public SObjectStatic
169 static Array
FromClick() {
return SComp::GetFromClick<SLine>(SV_LINE); }
175 static Array
FromName( String Name) {
return SComp::GetFromName<SLine>(Name); }
181 static Array
FromSel() {
return SFeature::GetFromSel<SLine>(); }
195 return SComp::GetAll<SLine>(VisCrit);
202Q_DECLARE_METATYPE(SLine::_SLineDummy);
203Q_DECLARE_METATYPE(
SLine);
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
The SFeature class is an abstract class.
Definition: SFeature.h:19
Line manipulation class. The SLine creation can be done by calling the static functions: .
Definition: SLine.h:25
Array BestRevolutionAxis(SComp iSelComp)
Compute the best revolution axis of a cloud or mesh (using an initial axis necessary to find the best...
SetLength(Number iLength)
Setter for the length.
static Array FromSel()
To get all the selected SComp.
Definition: SLine.h:181
Number GetPerimeter()
Returns the perimeter of the feature.
static SLine New(SPoint Point1, SPoint Point2)
Constructs a new SLine by 2 points.
static SLine New()
Default constructor to create an empty new SLine.
SPoint GetLastPoint()
Returns the second point of the feature.
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SLine.h:169
static SLine New(SPoint Center, SVector Normal, Number Length)
Constructs a new SLine by defining its data.
static String toString()
Get the type of the variable.
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SLine.h:187
String toString()
Get the type of the variable.
SPoint GetFirstPoint()
Returns the first point of the feature.
Array Discretize(Number deflection, Number meanPointDistance)
To convert the continuous feature into a discretized SMultiline. Only one parameter must be specified...
Array IntersectionBetween2Lines(SLine iSecondLine)
Calculate intersection with another line.
static SLine New(SLine Other)
Constructs an SLine by copying Other.
Number Distance(SPoint iPoint)
Returns the distance between a point and the feature <0 if below/inside the feature >0 if above/outsi...
static Array FromName(String Name)
Search all the component with the given name.
Definition: SLine.h:175
Number GetLength()
Returns the length.
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