33 namespace HDK_Sample {
54 gdp.
polyIsoSurface(HDK_Sample::densityFunction, NULL, bounds, 20, 20, 20);
57 gdp.
save(
"sphere.bgeo", NULL);
void polyIsoSurface(float(*ptOutside)(const UT_Vector3 &, void *), void *data, const UT_BoundingBox &bbox, int xdiv, int ydiv, int zdiv, bool makepolysoup=false)
void setBounds(T x_min, T y_min, T z_min, T x_max, T y_max, T z_max)
constexpr SYS_FORCE_INLINE T length() const noexcept
static SYS_FUNC_NORETURN void exit(UT_ExitCode exit_code=EXIT_OK)
Calls exit(), which implicitly leads to our callbacks being called.
int theMain(int argc, char *argv[])
IOStatus save(const char *filename, const GA_SaveOptions *options, UT_StringArray *errors=0) const