pyeuclid | 2D and 3D maths module for Python | Math library
kandi X-RAY | pyeuclid Summary
kandi X-RAY | pyeuclid Summary
2D and 3D maths module for Python
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Generate a new look at the given position
- Transpose the matrix
- Return a new rotation matrix
- Connect the plane to other plane
- Construct a LineSegment3 from a point 3 plane
- Connects the plane to the plane
- Return a new interpolation between two quaternions
- conjugate the quaternion
- Applies the transformation at t
- Get the point on the plane
- Determine the intersection between two points
- Construct a LineSegment3 Line segment
- Calculate the angle of this vector
- Return a copy of the quaternion
- Return the inverse of the matrix
- Return the determinant of the transform
- Connect two line segments
- Return a LineSegment2 Line segment
- Determine the intersection of the line3
- Connects two points on the sphere
- Connects two lines together
- Calculate the circle between self and other
- Calculate the connector between two planes
- Project this vector onto another vector
- Compute the distance between self and other
- Connect two plane objects to the plane
pyeuclid Key Features
pyeuclid Examples and Code Snippets
Community Discussions
Trending Discussions on pyeuclid
QUESTION
I just started to work with 3D meshes, oriented to be used for finite element analysis. I would like to model inclusions for materials (any shape, but mainly interested in spheres and ellipsoids) in a cube-like matrix. These inclusions shouldn't be coincident with each other.
So I was thinking to use some sort of package for python which can plot primitive objects, look for their intersection (if it exists) and export the geometry (or mesh it and export it). In case of spheres, I was coding my own solution, but I think it will be very difficult to expand it for any other shape than spheres.
After a couple of days looking for an appropriate library/module, I can't decide which one I should use.
I would like to use python as the main language since it is easy, open source and I already know a bit. Hence checked this link: Good geometry library in python?
But:
- SymPy. It seems it is only for 2D objects.
- pyeuclid. Looks discontinued in its google code page.
- CGAL. It seems the most advanced, but I can't find if it does intersections.
- geometry-simple. Also discontinued, and I believe it does not handle 3D objects.
- pythonocc. The lack of documentation is an important issue here.
- Open mesh. It seems a good alternative but I can't see if it does intersections.
I might be missing some features or libraries. Sorry about it.
If it is really necessary and useful, I could try to use C++ which it seems has more libraries for geometry as stated in here, here and here. Also, I think I should mention I work mainly on Windows 10, and my experience with Linux is little but I could challenge myself.
To summarize my question: Is there any good library in python (if possible) which can find intersections between 3D objects? Am I missing any feature or library I should know? I would appreciate a lot any suggestion in the right direction.
Thank very much in advance!
...ANSWER
Answered 2019-Nov-12 at 15:52You might want to check out pygalmesh (out of my zoo). It interfaces CGAL and as such uses level-set functions for mesh construction. All domain combinations (intersections, unions, differences) are implemented.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyeuclid
You can use pyeuclid like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page