![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Distance computation and collision detection in 3D.
![]() | ![]() |
Robot collision detection | Capsule collision detection |
![]() | ![]() |
Closest points | Hydroelastic contact |
distance3d relies on numba to speed up computations. numba in its latest version requires at least Python 3.7 and NumPy 1.18. See here for current requirements. Required Python libraries will automatically be installed during installation of distance3d.
Install the package with
pip install -e .[all]
or from PyPI with
pip install distance3d[all]
Install dependencies with
pip install -e .[test]
Run unit tests with
NUMBA_DISABLE_JIT=1 pytest
You will find the coverage report in htmlcov/index.html
.
Install dependencies with
pip install -e .[doc]
Build API documentation with
cd doc
make html
You will find the documentation in doc/build/html/index.html
.
These implementations are mostly based on
and accompanying implementations. These are marked as such.
The distance computation between a line and a circle is based on David Eberly's implementation, Copyright (c) 1998-2022 David Eberly, Geometric Tools, Redmond WA 98052, distributed under the Boost Software License, Version 1.0.
The original GJK algorithm is a translation to Python of the translation to C of the original Fortran implementation. The C implementation is from Diego Ruspini. It is available from http://realtimecollisiondetection.net/files/gilbert.c
Some features related to the GJK algorithm have been inspired by Bullet (zlib license) and are marked as such in the source code.
The EPA algorithm is adapted from Kevin Moran's GJK implementation (MIT License or Unlicense).
A GJK intersection test and the MPR algorithm are based on libccd (for details, see https://github.com/danfis/libccd). For the original code the copyright is of Daniel Fiser danfis@danfis.cz. It has been released under 3-clause BSD license.
The main GJK implementation is based on Jolt Physics, Copyright 2021 Jorrit Rouwe, MIT license.
The translation to Python has been done by Alexander Fabisch and the glue code around it is licensed under the 3-clause BSD license.
FAQs
Distance computation and collision detection in 3D.
We found that distance3d demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.