Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48687

Re: Beginner Question: 3D Models

From Christian Gollwitzer <auriocus@gmx.de>
Newsgroups comp.lang.python
Subject Re: Beginner Question: 3D Models
Date 2013-06-19 08:00 +0200
Organization A noiseless patient Spider
Message-ID <kprh4r$qc3$1@dont-email.me> (permalink)
References <b90be6d8-14db-42f2-92f3-a6aaba9ee075@googlegroups.com>

Show all headers | View raw


Am 19.06.13 04:47, schrieb andrewblundon@gmail.com:
> However, for one part of the program I'd like to be able to create a
> 3D model based on the user input.  The model would be very basic
> consisting of a number of lines and objects.  We have 3D models of
> each component within our CAD system so it would be great if we could
> utilize those models.

Have a look at vtk

http://www.vtk.org/

Using VTK you can import CAD models and visualize them, combine to 
scenes and export. VTK has Python bindings. It is a real big library, 
but focused on polygonal models, i.e. it will happily import STL and 
OBJ, but not IGES and the like ith real curves. Then the question is how 
you'd want to export your model. VTK can export to VRML and X3D, but if 
you want to CREATE a real model by CSG of the exisiting parts, you would 
need a true CAD system. There is not much useful free stuff out there, 
you could try BRL-CAD or OpenCascade. The latter also has python 
bindings. http://www.pythonocc.org/

	Christian

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-18 19:47 -0700
  Re: Beginner Question: 3D Models Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-19 03:20 +0000
    Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 04:13 -0700
      Re: Beginner Question: 3D Models Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-06-19 12:52 +0100
        Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 06:12 -0700
      Re: Beginner Question: 3D Models Fábio Santos <fabiosantosart@gmail.com> - 2013-06-19 13:07 +0100
        Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 06:14 -0700
          Re: Beginner Question: 3D Models Oscar Benjamin <oscar.j.benjamin@gmail.com> - 2013-06-19 14:57 +0100
          Re: Beginner Question: 3D Models Fábio Santos <fabiosantosart@gmail.com> - 2013-06-19 15:11 +0100
  Re: Beginner Question: 3D Models Christian Gollwitzer <auriocus@gmx.de> - 2013-06-19 08:00 +0200
    Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 04:14 -0700
  Re: Beginner Question: 3D Models Rick Johnson <rantingrickjohnson@gmail.com> - 2013-06-19 07:17 -0700
    Re: Beginner Question: 3D Models andrewblundon@gmail.com - 2013-06-19 09:34 -0700

csiph-web