GIDForums  

Go Back   GIDForums > Computer Programming Forums > Python Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 26-Feb-2008, 16:33
rbp rbp is offline
Junior Member
 
Join Date: Nov 2005
Location: Melbourne, Australia
Posts: 60
rbp will become famous soon enough

Geometry library


hello,

does anyone know of a geometry library I can use with python (though not necessarily written in python) that can calculate intersections between things.
For instance the intersection of 2 planes would return a line.
I need to find intersections between both finite and infinite lines, planes, and polygons.

Currently I'm looking at Shapely (http://gispython.org/shapely/manual.html), which looks good but it doesn't seem to handle infinite regions.

Richard
  #2  
Old 26-Feb-2008, 17:41
rbp rbp is offline
Junior Member
 
Join Date: Nov 2005
Location: Melbourne, Australia
Posts: 60
rbp will become famous soon enough

Re: Geometry library


oh, and I also need the planes, line, etc to be in 3D space. Unfortunately Shapely is 2D.
  #3  
Old 29-Feb-2008, 11:40
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,534
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: Geometry library


You might try PySci; it's a scientific library for Python though I don't know much about it so I can't guarantee it will work for you.

I did find the following link that discusses several different options:http://zcologia.com/news/150/geometries-for-python/
__________________
Common Sense v2.0-Striving to make the world a little bit smarter.
  #4  
Old 29-Feb-2008, 15:38
rbp rbp is offline
Junior Member
 
Join Date: Nov 2005
Location: Melbourne, Australia
Posts: 60
rbp will become famous soon enough

Re: Geometry library


thanks for the info, but it seems to be a 2D library. There is a link to Shapely from that page but I don't understand the relation.

In the end I went with Panda3D. As you may know this is a full python game engine so there is some overhead to using it, but it does all the geometry operations I need. And I've been looking for an excuse to get more experience with this framework!
If you're interested in making games or simulations in python I recommend checking it out: http://panda3d.org/. It was originally made by Disney for an MMORPG they made, and then open sourced. The documentation is comprehensive and focuses on python, with some information about the C internals. I found it straightforward to install in Linux and Windows. And there's lots of help in the forums. Seemingly some of the really active forum members work for Disney.
  #5  
Old 06-Mar-2008, 21:14
crystalattice's Avatar
crystalattice crystalattice is offline
Flame War Instigator
 
Join Date: Apr 2004
Location: San Diego
Posts: 1,534
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: Geometry library


I haven't heard of it before so thanks for the info.
__________________
Common Sense v2.0-Striving to make the world a little bit smarter.
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
News:E-XD++ MFC Library Professional Edition V9.20 is released (100% Source jackonlyone Member Announcements, Advertisements & Offers 0 07-Mar-2006 21:04
Bloodshed Dev C++ Project Options JdS CPP / C++ Forum 6 11-Nov-2005 17:23

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:31.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.