You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you considered providing a func (m *Mesh) ToVoxels(box Box, nx, ny, nz int) []Voxel
where nx, ny, and nz are the number of voxels in the X, Y, and Z directions (enclosed by the provided bounding box)?
That way, a mesh could be voxelized at any desired resolution by subdividing the conversion into smaller boxes and recombining them later.
The text was updated successfully, but these errors were encountered:
Have you considered providing a
func (m *Mesh) ToVoxels(box Box, nx, ny, nz int) []Voxel
where
nx
,ny
, andnz
are the number of voxels in theX
,Y
, andZ
directions (enclosed by the provided boundingbox
)?That way, a mesh could be voxelized at any desired resolution by subdividing the conversion into smaller boxes and recombining them later.
The text was updated successfully, but these errors were encountered: