#include <CoreAPI.h>
EXPORT
int main() {
auto volume = current.
Volume();
volume.toSurface();
h.
setData(BoltHeadType::BoltHexa,hexa);
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.
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
bolt head primitive
Definition CorePrimAPI.h:2731
boltHead & head(const HeadParams &_h)
set the head object.
prim & details(const float det_level)
set the detail level
prim & y(float y)
shift the primitive along the y - axis
void add(Volume &v)
add the prim into scene
thread & pitch(const float p)
set the pitch of the thread.
thread & turns(const int &n)
set the number of the thread turns.
thread & profile(const ThreadProfile &prf)
set the thread profile type.
thread stud primitive
Definition CorePrimAPI.h:2225
threadStud & length(const float &l)
set the stud length.
threadStud & diameter(const float &d)
set the diameter of the thread.
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