8#include "RshPluginScript/RshPluginScriptDefines.h"
9#include "RshPluginScript/SClass/SFeature.h"
12namespace rsh::ScriptBinding
83 Number meanPointDistance
215 :
public SObjectStatic
287 static Array
FromClick() {
return SComp::GetFromClick<SPlane>(SV_PLANE); }
293 static Array
FromName( String Name) {
return SComp::GetFromName<SPlane>(Name); }
299 static Array
FromSel() {
return SFeature::GetFromSel<SPlane>(); }
313 return SComp::GetAll<SPlane>(VisCrit);
320Q_DECLARE_METATYPE(SPlane::_SPlaneDummy);
321Q_DECLARE_METATYPE(
SPlane);
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
Class to store a multiline, that is: an ordered list of points. The SMultiline creation can be done b...
Definition: SMultiLine.h:24
Plane manipulation class. The SPlane creation can be done by calling the static functions: .
Definition: SPlane.h:24
Array Proj3D(SPoint iPointToProject)
Projects a point onto the plane (shortest point)
static Array All(Number VisCrit)
To get all the SComp in the document.
Definition: SPlane.h:305
static Array FromName(String Name)
Search all the component with the given name.
Definition: SPlane.h:293
SetLength(Number iLength)
Setter for the length.
static SPlane New(SPlane Other)
Constructs an SPlane by copying the SPlane Other.
static SPlane New()
Default constructor to create an empty new SPlane.
Number GetSurface()
Returns the surface of the feature.
Array Discretize(Number deflection, Number meanPointDistance)
To discretize the current feature. Only one parameter must be specified at a time: To use the deflect...
Array Proj3D(SMultiline iMultilineToProject)
Calculates the 3D projection of a SMultiline on an SPoly.
static SPlane New(SPoint FirstPt, SPoint SecondPt, SPoint ThirdPt)
Constructs a new SPlane by 3 points.
Number GetWidth()
Returns the width.
String toString()
Get the type of the variable.
Array ProjDir(SPoint iPointToProject, SVector iProjectionVector)
Projects a point onto the plane according to a given direction.
static Array FromClick()
Launches a click interaction to select a SComp in the scene.
Definition: SPlane.h:287
Number Distance(SPoint iPoint)
Returns the distance between a point and the feature <0 if below/inside the feature >0 if above/outsi...
Number GetLength()
Returns the length.
Array ProjDir(SMultiline iMultilineToProject, SVector Direction)
Calculate the projection of a polyline onto the current plane along a direction.
static SPlane New(SPoint Center, SVector Normal, SVector XDir, Number Length, Number Width)
Constructs a new SPlane by defining its data.
Array IntersectionBetween2Planes(SPlane iSecondPlane)
Calculate intersection with another plane.
Array BestSymmetryPlane(SComp iSelComp, Number iOption)
Compute the best symmetry plane of a cloud or mesh.
static String toString()
Get the type of the variable.
SetWidth(Number iWidth)
Setter for the width.
Array FitPlaneToBoundingBox3D(SPoint iLowerPoint, SPoint iUpperPoint, Boolean iMoveCenter, Number iScale)
Modify the plane's size. Compute the intersection between a box and plane.
static SPlane New(SPoint Center, SVector Normal)
Constructs a new SPlane by defining its data.
static Array FromSel()
To get all the selected SComp.
Definition: SPlane.h:299
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