GO2cam Javascript API  6.11
GO2SSolidCreate Class Reference

Helper class to create solid. More...

Inherits QObject.

Public Member Functions

std::vector< GO2SSolidFromFile (String dir, String name)
 
std::vector< GO2SSolidFromFile (String filename)
 

Static Public Member Functions

static GO2SSolid Cone (GO2SXYZ center, Number radiusBase, Number radiusTop, Number height)
 See GO2SSolid.CreateCone.
 
static GO2SSolid Cuboid (GO2SXYZ Org, GO2SXYZ ptX, GO2SXYZ ptY, Number h)
 See GO2SSolid.CreateCuboid.
 
static GO2SSolid Cylinder (GO2SXYZ center, Number radius, Number height)
 See GO2SSolid.CreateCylinder.
 
static GO2SSolid Extrusion (GO2SProfile profile, GO2SXYZ direction, Number height, Number taperAngle, Boolean surfacic)
 See GO2SSolid.CreateExtrusion.
 
static GO2SSolid Lofting (Array< GO2SProfile > profiles, Boolean periodic, Boolean surfacic)
 See GO2SSolid.CreateLofting.
 
static GO2SSolid MultiExtrusion (Array< GO2SProfile > profiles, GO2SXYZ direction, Number height, Number taperAngle, Boolean surfacic)
 See GO2SSolid.CreateMultiExtrusion.
 
static GO2SSolid MultiRevolution (Array< GO2SProfile > profiles, GO2SXYZ axis, Number angle, Boolean surfacic)
 See GO2SSolid.CreateMultiRevolution.
 
static GO2SSolid Revolution (GO2SProfile profile, GO2SXYZ axis, Number angle, Boolean surfacic)
 See GO2SSolid.CreateRevolution.
 
static GO2SSolid Sphere (GO2SXYZ center, Number radius)
 See GO2SSolid.CreateSphere.
 
static GO2SSolid Torus (GO2SXYZ center, Number radius, Number height)
 See GO2SSolid.CreateTorus.
 

Detailed Description

Helper class to create solid.

Member Function Documentation

◆ FromFile() [1/2]

std::vector< GO2SSolid > GO2SSolidCreate::FromFile ( String dir,
String name )

Load solid(s) from a file

Remarks
Supported format(s): X_T
Returns
an array of loaded solids
Parameters
[in]dirdirectory
[in]namefilename, must end with '.X_T'

◆ FromFile() [2/2]

std::vector< GO2SSolid > GO2SSolidCreate::FromFile ( String filename)

Load solid(s) from a file

Remarks
Supported format(s): X_T
Returns
an array of loaded solids
Parameters
[in]filenameabsolute filename, must end with '.X_T'