QUAOAR STUDIO // Mobius API
31 #ifndef poly_MarchingCubes_HeaderFile
32 #define poly_MarchingCubes_HeaderFile
35 #include <mobius/poly_GridTessellator.h>
36 #include <mobius/poly_RealFunc.h>
76 mobiusPoly_EXPORT
static t_ptr<t_mesh>
79 const t_ptr<poly_RealFunc>& func,
80 const double isoValue);
85 mobiusPoly_EXPORT
static int
98 mobiusPoly_EXPORT
static t_xyz
114 mobiusPoly_EXPORT
static t_xyz
117 const double scalar1,
118 const double scalar2);
129 const int numSlices = 128,
141 mobiusPoly_EXPORT
virtual bool
142 perform(
const double isoValue);
Defines an exception class C1 that inherits an exception class C2.
Definition: bspl_Decompose.h:41
Definition: core_XYZ.h:45
Definition: poly_GridTessellator.h:47
Definition: core_IPlotter.h:252
t_ptr< poly_RealFunc > m_func
Implicit function defining the field.
Definition: poly_MarchingCubes.h:146
virtual ~poly_MarchingCubes()=default
Dtor.
Definition: core_IProgressNotifier.h:193
Definition: poly_MarchingCubes.h:66
static mobiusPoly_EXPORT t_xyz InterpVertex(const t_xyz &point1, const t_xyz &point2, const double scalar1, const double scalar2)
static mobiusPoly_EXPORT int GetCubeIndex(double voxelScalars[2][2][2])
mobiusPoly_EXPORT poly_MarchingCubes(const t_ptr< poly_RealFunc > &func, const int numSlices=128, core_ProgressEntry progress=nullptr, core_PlotterEntry plotter=nullptr)
static mobiusPoly_EXPORT t_xyz GetVoxelCorner(const t_xyz &origin, const double dx, const double dy, const double dz, const int nx, const int ny, const int nz)
static mobiusPoly_EXPORT t_ptr< t_mesh > PolygonizeVoxel(const t_xyz &P0, const t_xyz &P7, const t_ptr< poly_RealFunc > &func, const double isoValue)