#include <CoreAPI.h>
EXPORT
int main() {
auto volume = current.
Volume();
volume.toSurface();
h.
setData(BoltHeadType::BoltHexa,hexa);
h.
setData(BoltHeadType::Countersunk,flat);
h.
setData(BoltHeadType::Lamb,lamb);
return 0;
}
HeadBaseParams struct of the head data.
Definition CorePrimAPI.h:2492
class HeadParams
Definition CorePrimAPI.h:2444
HeadParams & setData(int _type, void *param)
set the parameters data with specified type.
struct of the LambParams data
Definition CorePrimAPI.h:2570
int childCount() const
returns the child elements count
SceneElement addChild(const char *name) const
add the child element of the same nature
static SceneElement sculptRoot()
get the root of all sculpt objects
class of the slits
Definition CorePrimAPI.h:2354
Slit & height(const float &_h)
set the height.
Slit & type(const int &_t)
set the slit type.
Slit & depth(const float &_d)
set the depth.
Slit & width(const float &_w)
set the width.
bolt head primitive
Definition CorePrimAPI.h:2731
boltHead & slit(const Slit &_s)
set the slit object.
boltHead & head(const HeadParams &_h)
set the head object.
prim & details(const float det_level)
set the detail level
prim & x(float x)
shift the primitive along the x - axis
prim & z(float z)
shift the primitive along the z - axis
void add(Volume &v)
add the prim into scene
static void toRoom(const char *name, bool Force=false)
switch to the room
The coat namespace used for most 3DCoat API calls except low-level internal structures.
Definition CoreAPI.h:43