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
Setup Python venv:
python -m venv .env
source .env/bin/activate
pip install maturin
Build Python package after each modification:
maturin develop
This work is licensed under a Apache-2.0.
Copyright (c) 2023-present, Zexin Yuan