module

GS::Export::GPUMarchingCubes

GPU Marching Cubes operations module

Constants

MC_KERNEL_SOURCE = {{ read_file("/tmp/tmp.faCcNO/src/src/export/../metal/kernels/marching_cubes.metal") }}

Load marching cubes kernel source at compile time

Instance methods

available?

Check if GPU MC is available

Source
ensure_initialized

Lazy init

Source
extract(points : Tensor, resolution : Int32 = 128, sigma : Float32 = 0.02_f32, isovalue : Float32 = 0.5_f32, bounds_min : Tuple(Float32, Float32, Float32) | Nil = nil, bounds_max : Tuple(Float32, Float32, Float32) | Nil = nil) : Mesh

Full GPU marching cubes pipeline Returns: Mesh

Source
get_pipeline(name : String) : Metal::ComputePipeline

Get or create pipeline

Source