Enums
- class fvdb.SmoothingMode(*values)[source]
Laplacian smoothing mode used to de-staircase a signed distance field in
fvdb.Grid.reinitialize_sdf()/fvdb.Grid.rebuild_narrow_band()(and theirfvdb.GridBatchcounterparts).The number of smoothing passes is controlled separately by the
smoothargument; this enum selects which umbrella-Laplacian flow each pass applies. Smoothing runs after the redistance and is followed by a short second redistance (with a freshly computed sign) so|grad phi| = 1is restored; unlike a pure redistance it therefore moves the zero crossing to the smoothed surface. Thin (about one voxel) features can be eroded byMEAN_CURVATURE; preferTAUBINorsmooth=0for them. Values mirror the C++fvdb::detail::ops::SmoothingModeenum.- MEAN_CURVATURE = 0
each pass moves every voxel toward the average of its 6 face neighbours. Effective at removing staircase artifacts but shrinks the surface (volume loss) if over-applied.
- Type:
Mean-curvature flow
- TAUBIN = 1
alternates a positive (shrinking) and a slightly larger negative (inflating) Laplacian step per pass, de-staircasing with much less volume loss.
- Type:
Volume-preserving Taubin smoothing
- class fvdb.ConvolutionPhasePolicy(*values)[source]
Kernel phase convention used by a convolution plan.
- TORCH_SAME_PHASE = 'torch_same_phase'
Use PyTorch
padding=floor((kernel_size - 1) / 2)phase.
- class fvdb.ConvolutionTopologyPolicy(*values)[source]
Policy controlling the finite output topology of a convolution plan.
- COMPLETE = 'complete'
Generate the complete, uncropped structural topology.
- RESTRICTED = 'restricted'
Evaluate the convolution relation only on an explicit target grid.
- class fvdb.ConvolutionTopologyProvenance(*values)[source]
How a convolution plan’s finite topology was obtained.
- EXACT_TRANSPOSE = 'exact_transpose'
Reversed directly from another plan’s stored finite edge set.
- EXPLICIT_TARGET = 'explicit_target'
Restricted to a target grid supplied by the caller.
- GENERATED = 'generated'
Generated from the source grid using the canonical convolution relation.
- class fvdb.CameraModel(*values)[source]
Camera model for Gaussian splat projection and ray generation.
PINHOLEandORTHOGRAPHICignore distortion coefficients. TheOPENCV_*variants use pinhole intrinsics plus OpenCV-style distortion and expect a packed[C, 12]coefficient tensor laid out as[k1, k2, k3, k4, k5, k6, p1, p2, s1, s2, s3, s4], with unused entries set to zero. Values mirror the C++fvdb::detail::ops::DistortionModelenum.- OPENCV_RADTAN_5 = 1
OpenCV radial-tangential distortion. Uses the packed slots
k1, k2, k3, p1, p2;k4..k6ands1..s4must be zero.
- OPENCV_RADTAN_THIN_PRISM_9 = 3
OpenCV radial-tangential plus thin-prism distortion. Uses
k1, k2, k3, p1, p2, s1..s4;k4..k6must be zero.
- OPENCV_RATIONAL_8 = 2
OpenCV rational radial-tangential distortion. Uses the packed slots
k1..k6, p1, p2;s1..s4must be zero.
- OPENCV_THIN_PRISM_12 = 4
OpenCV rational radial-tangential plus thin-prism distortion. Uses all twelve packed slots.
- ORTHOGRAPHIC = 5
Orthographic camera (no distortion).
- PINHOLE = 0
Ideal pinhole camera (no distortion).
- class fvdb.RollingShutterType(*values)[source]
Rolling shutter policy for Gaussian splat camera projection and ray generation.
Rolling shutter models treat different image rows or columns as having different exposure times, interpolating between per-camera start and end poses. Values mirror the C++
fvdb::detail::ops::RollingShutterTypeenum.- HORIZONTAL = 2
exposure time varies with image column (x).
- Type:
Horizontal rolling shutter
- NONE = 0
the start pose is used for all pixels.
- Type:
No rolling shutter
- VERTICAL = 1
exposure time varies with image row (y).
- Type:
Vertical rolling shutter