new to the list, cgkit newbie, would greatly appreciate help with the
1. Importing a 3ds (or dxf, or .skp, not picky) file as a TriMeshGeom
2. Visualizing it,
3. Accessing the geometry (specifically, to run intersectRay() on it).
I found a 3ds import function (at
http://cgkit.sourceforge.net/doc2/node185.html), but have no idea how it
works. Would very, very much appreciate an example or walkthrough on the
Rodrigo Culagovski wrote:
> new to the list, cgkit newbie, would greatly appreciate help with the
> 1. Importing a 3ds (or dxf, or .skp, not picky) file as a TriMeshGeom
> 2. Visualizing it,
The easiest way to do that is using the viewer tool:
This will load the file and visualize it using OpenGL.
> 3. Accessing the geometry (specifically, to run intersectRay() on it).
from cgkit.all import *
model = worldObject("model_name")
You can find out the name of your geometry by calling listWorld() after
loading the model which will dump the names of the objects in the
If you do all that from within a script that is invoked using the viewer
tool you could omit the first two lines (i.e. the import and load()) and
pass the file name on the command line.
The load(), worldObject() and listWorld() functions are mentioned here:
- Matthias -
Get latest updates about Open Source Projects, Conferences and News.