Re: object-oriented access to scene actors
Prabhu Ramachandran <
prabhu@...>
2009-02-02 06:45:19 GMT
On 01/27/09 09:03, Eric Carlson wrote:
> On a completely separate level, I can not help but feel strongly that the tvtk/mayavi/mlab framework
might work very well as the basis for a 3d drawing package. Most recently, I used the framework to extract
pieces from a 3ds model, merge, save as stl, then open, transform, clip multiple times, merge with some
other meshes, resave as stl, import into cam package, output gcode, which was CNC milled to create a
pinewood derby car. Beyond the modeling, I also think the framework would work well for ECM2 and PyCam.
Sounds very interesting. Thanks for the compliments. I think VTK
itself isn't too well suited to the scene graph like model that seems
often better for a 3D drawing package since VTK does not have such an
architecture underneath. The problem being scaling to larger and larger
number of actors. However, it does let you do a lot of stuff and works
brilliantly for scientific data so this is an interesting use for VTK.
> BTW, after figuring out how to use the VTK 3ds importer, I had a difficult time extracting the names of the
pieces. Dice3DS was a very useful package for my project.
Ah, OK. VTK's 3DS importer just injects a whole bunch of actors
directly, a bit of a pain but can be worked around again thanks to
Python. I haven't had occasion to play with 3DS files so it is good to
know Dice3DS is a good package to have for this kind of work.
cheers,
prabhu