This example generates the surface consist of logo 3D picture
#include <CoreAPI.h>
EXPORT
int main() {
ui::toRoom("Sculpt");
auto scene = Scene::sculptRoot().addChild("Logo3D");
auto volume = scene.Volume();
volume.toSurface();
str file = io::toFullPathInInstallFolder(
"/UserPrefs/CoreAPI/.coredox/images/logo_400x400.png");
return 0;
}
image primitive
Definition CorePrimAPI.h:1926
image & topTexture(const char *_texture)
set the top texture
image & topBumpTexture(const char *_texture)
set the top bump texture
image & bumpThickness(const float &_thickness)
set the bump thickness of image
image & basicThickness(const float &_thickness)
set the basic thickness of image
void add(Volume &v)
add the prim into scene
text & depth(const float &d)
set the text depth in the pixels
text & width(const float &w)
set the text width in the pixels
The coat namespace used for most 3DCoat API calls except low-level internal structures.
Definition CoreAPI.h:14
comms::cStr str
the string that is compatible with the 3DCoat engine, see the cStr
Definition CoreAPI.h:34