Skip to content
/ sdflit Public

Fast and Robust Signed Distance Function Library

License

Notifications You must be signed in to change notification settings

yzx9/sdflit

Repository files navigation

SDF-Lit

Usage

pip install sdflit

Try it in Python:

>>> import sdflit as sdf
>>> sphere = sdf.Sphere((0, 0, 0), 1)
>>> sphere.distance((0, 0, 0))
-1.0
>>> sphere.distance((1, 0, 0))
0.0
>>> sphere.distance((1, 1, 1))
0.7320507764816284

Development

Setup Python venv:

python -m venv .env
source .env/bin/activate
pip install maturin

Build Python package after each modification:

maturin develop

License

This work is licensed under a Apache-2.0.

Copyright (c) 2023-present, Zexin Yuan

About

Fast and Robust Signed Distance Function Library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published