Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good geometry library in python? [closed]

I am looking for a good and well developed library for geometrical manipulations and evaluations in python, like:

  • evaluate the intersection between two lines in 2D and 3D (if present)
  • evaluate the point of intersection between a plane and a line, or the line of intersection between two planes
  • evaluate the minimum distance between a line and a point
  • find the orthonormal to a plane passing through a point
  • rotate, translate, mirror a set of points
  • find the dihedral angle defined by four points

I have a compendium book for all these operations, and I could implement it but unfortunately I have no time, so I would enjoy a library that does it. Most operations are useful for gaming purposes, so I am sure that some of these functionalities can be found in gaming libraries, but I would prefer not to include functionalities (such as graphics) I don't need.

Any suggestions ? Thanks

like image 278
Stefano Borini Avatar asked Jul 02 '09 21:07

Stefano Borini


People also ask

What is Python in geometry?

Python has capability to create GUI applications using the Tkinter library. The library provides many methods useful for GUI applications. The geometry method is a fundamental one which decides the size, position and some other attributes of the screen layout we are going to create.

How do you install Scikit geometry?

Installation. scikit-geometry can either be built from source, or installed from conda . Otherwise, CGAL 5.0 needs to be available, and then running python -m pip install -e . -v from the cloned scikit-geometry git repository should install and build scikit-geometry (note: this takes a while to build!).


1 Answers

Perhaps take a look at SymPy.

like image 112
John Y Avatar answered Oct 16 '22 19:10

John Y