8#include "RshPluginCmdShape/RshPluginCmdShapeDefines.h"
9#include "RshPluginDShape/SShape/SShape.h"
10#include "RshPluginDShapeInterface/SShape/DShapeMetaType.h"
11#include "RshPluginScript/SClass/SComp.h"
14namespace rsh::ScriptBinding
51class RshPluginCmdShapeAPI
SShape
53 :
public SObjectStatic
97 static Array
FromClick() {
return SComp::GetFromClick<SShape>(SV_SHAPE); }
103 static Array
FromName( String Name) {
return SComp::GetFromName<SShape>(Name); }
123 return SComp::GetAll<SShape>(VisCrit);
179 Array<SShape> iEdgeTable
213 Array<SShape> iLinearTable
231 Boolean iImmobileUMin,
233 Boolean iImmobileUMax,
235 Boolean iImmobileVMin,
237 Boolean iImmobileVMax,
239 Boolean iProjBadPtsOnCloud
247RSH_SCOMP_STATIC_Q_DECLARE_METATYPE(
SShape, _SShapeDummy);
The SComp class is an abstract class. Use derived classes SCircle, SCylinder, SCloud,...
Definition: SComp.h:32
Class to store a multiline, that is: an ordered list of points. The SMultiline creation can be done b...
Definition: SMultiLine.h:24
The SPoly class provides triangular mesh(es) manipulation. The SPoly creation can be done by calling ...
Definition: SPoly.h:39
Shape manipulation class. The SShape creation can be done by calling the static function New() to cop...
Definition: SShape.h:22
static Array AddRestriction(SShape iSurface, SShape iWireRestriction)
Create restriction to a CAD Surface from a closed CAD wire.
static SShape CreateTriangulatedSurface(SPoly iPoly)
Constructs a SShape triangulated surface by converting a SPoly.
static Array FromName(String Name)
Search all the SShape with the given name.
Definition: SShape.h:103
static Array AddHoles(SShape iSurface, Array< SShape > iLinearTable)
Create holes to a CAD Surface from closed CAD edge and CAD wire.
static Array CreateWire(Array< SShape > iEdgeTable)
Construct a new CAD wire by connecting all CAD edges.
static SShape CreateCompound(Array< SShape > iOthers)
Constructs a SShape compound from the given shape list.
static SShape New(SShape Other)
Constructs a SShape by copying Other.
static String toString()
Get the type of the variable.
static Array Fill(SShape iWire, FillingType iFillingType)
Create a filling surface from CAD wire. You have to enter the command with a closed wire composed of ...
static Array All(Number VisCrit)
To get all the SShape in the document.
Definition: SShape.h:115
static SShape New(SMultiline iMultiline, SmoothingMethod iMethod)
Constructs a new BSpline curve by smoothing (interpolation or approximation) a SMultiline.
String toString()
Get the type of the variable.
SmoothingMethod
Smoothing method used for BSpline curve creation.
Definition: SShape.h:68
static Array FitOnMesh(SShape iSurface, SPoly iMesh, Boolean iImmobileUMin, Boolean iImmobileUMax, Boolean iImmobileVMin, Boolean iImmobileVMax, Boolean iProjBadPtsOnCloud)
Fit a CAD Surface on a mesh.
static Array FromSel()
To get all the selected SShape.
FillingType
The type of filling to use.
Definition: SShape.h:78
@ MEDIUM
Definition: SShape.h:81
static Array FromClick()
Launches a click interaction to select a SShape in the scene.
Definition: SShape.h:97
Array Explode()
Explode the CAD object.