All Projects → swiftcoder → isosurface

swiftcoder / isosurface

Licence: Apache-2.0 license
Rust algorithms for isosurface extraction

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to isosurface

isosurface
Isosurface extraction using Marching Cubes and pure WebGL.
Stars: ✭ 66 (+29.41%)
Mutual labels:  isosurface, marching-cubes, isosurface-extraction
Meshing.jl
Meshing and isosurface extraction algorithms
Stars: ✭ 46 (-9.8%)
Mutual labels:  marching-cubes, isosurface-extraction
dmc
Dual Marching Cubes Implementation in C++
Stars: ✭ 45 (-11.76%)
Mutual labels:  marching-cubes, isosurface-extraction
fastDesp-corrProp
Fast Descriptors and Correspondence Propagation for Robust Global Point Cloud Registration
Stars: ✭ 16 (-68.63%)
Mutual labels:  point-cloud
pyRANSAC-3D
A python tool for fitting primitives 3D shapes in point clouds using RANSAC algorithm
Stars: ✭ 253 (+396.08%)
Mutual labels:  point-cloud
frustum-convnet
The PyTorch Implementation of F-ConvNet for 3D Object Detection
Stars: ✭ 228 (+347.06%)
Mutual labels:  point-cloud
voxelfield
Server authoritative multiplayer shooter game with fully destructible terrain
Stars: ✭ 20 (-60.78%)
Mutual labels:  marching-cubes
IsoMesh
IsoMesh is a group of related tools for Unity for converting meshes into signed distance field data, raymarching signed distance fields, and extracting signed distance field data back to meshes via surface nets or dual contouring.
Stars: ✭ 178 (+249.02%)
Mutual labels:  isosurface-extraction
Point2Sequence
Point2Sequence: Learning the Shape Representation of 3D Point Clouds with an Attention-based Sequence to Sequence Network
Stars: ✭ 34 (-33.33%)
Mutual labels:  point-cloud
LPD-net
LPD-Net: 3D Point Cloud Learning for Large-Scale Place Recognition and Environment Analysis, ICCV 2019, Seoul, Korea
Stars: ✭ 75 (+47.06%)
Mutual labels:  point-cloud
point based clothing
Official PyTorch code for the paper: "Point-Based Modeling of Human Clothing" (ICCV 2021)
Stars: ✭ 57 (+11.76%)
Mutual labels:  point-cloud
persee-depth-image-server
Stream openni2 depth images over the network
Stars: ✭ 21 (-58.82%)
Mutual labels:  point-cloud
pcc geo cnn
Learning Convolutional Transforms for Point Cloud Geometry Compression
Stars: ✭ 44 (-13.73%)
Mutual labels:  point-cloud
softpool
SoftPoolNet: Shape Descriptor for Point Cloud Completion and Classification - ECCV 2020 oral
Stars: ✭ 62 (+21.57%)
Mutual labels:  point-cloud
rabbit-hole
An experimental voxel engine.
Stars: ✭ 39 (-23.53%)
Mutual labels:  isosurface
zed-ros2-wrapper
ROS 2 wrapper beta for the ZED SDK
Stars: ✭ 61 (+19.61%)
Mutual labels:  point-cloud
Open-Infra-Platform
This is the official repository of the open-source Open Infra Platform software (as of April 2020).
Stars: ✭ 26 (-49.02%)
Mutual labels:  point-cloud
efficient online learning
Efficient Online Transfer Learning for 3D Object Detection in Autonomous Driving
Stars: ✭ 20 (-60.78%)
Mutual labels:  point-cloud
PyKinect2-PyQtGraph-PointClouds
Creating real-time dynamic Point Clouds using PyQtGraph, Kinect 2 and the python library PyKinect2.
Stars: ✭ 42 (-17.65%)
Mutual labels:  point-cloud
VoxelTerrain
This project's main goal is to generate and visualize terrain built using voxels. It was achieved using different approaches and computing technologies just for the sake of performance and implementation comparison.
Stars: ✭ 37 (-27.45%)
Mutual labels:  marching-cubes

Crates.io Docs.rs Github license

Isosurface

Isosurface extraction algorithms implemented in Rust. The classical Marching Cubes and Dual Contouring techniques are included, along with more modern variations on the theme.

In the interest of education, the documentation for each extraction algorithm links to the relevant academic papers.

Example programs

cargo run --example sampler will execute the sampler, which allows you to compare a variety of algorithms and implicit surfaces.

cargo run --example deferred_rasterisation will execute a demonstration of GPU-side deferred rasterisation from point clouds. This is a technique pioneered by Gavan Woolery, of Voxel Quest fame.

Dependencies

This library intentionally has no dependencies. While that requires some redevelopment of common code (i.e. the Vec3 type), it keeps the footprint of the library small, and compile times low for consuming crates. The examples do however rely on the glium, glium_text_rusttype, and cgmath crates, to avoid reinventing the world.

32-bit indices

For simplicity vertex indices have been fixed at 32-bits, because for chunks of 32x32x32 and larger you'll often end up with more than 65k vertices. If you are targeting a mobile platform that supports only 16-bit indices, you'll need to keep to smaller chunk sizes, or split the mesh on the output side.

Why are optimisations enabled in debug builds?

Without optimisations enabled, debug builds are around 70x slower. The implementation relies on a lot of nested for loops over integer ranges, and the range iterators themselves entirely dominate the CPU profiles in unoptimised builds.

While this can be worked around by converting the for 0..8 style of loop to a while loop with manual counter, the result is quite unpleasant, and distinctly not in the spirit of rust. I'd rather leave optimisations enabled, and wait for the compiler to become better at handling iterators in debug builds.

If you take a dependency on this crate and run into the same issue, you can tell Cargo to compile just this one crate in release mode, by adding the following to your Cargo.toml:

[profile.dev.package.isosurface]
opt-level = 3
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].