On Mon, Jan 26, 2015 at 2:39 PM, John Griessen <john@industromatic.com> wrote:
> " tcl scripts that mged can directly process into database (.g) files."
>
> suggests it is stand alone not needing python-brlcad.
Yep! Only depends on Python and brlcad being installed. I mention
Bryan B's python-brlcad because I'd been trying to use that, and
figured I'd use his syntax so I could switch between his 'backend' and
mine... in case someone comes along and wants to work out the current
bugs with me.
You should be able to just clone the python-brlcad-tcl repo, then run
the instructions in the README.
I've only got the rpp and rcc primitives working right now, in
addition to union, subtract and intersect. Adding more primitives is
just a matter doing the string formatting based on the parameters each
primitive expects.
http://brlcad.org/wiki/BRL-CAD_Primitives
In mged you can get it to interactively ask you for each parameter...
so if you wanted to add a sphere you'd type (after opening/creating a
new database from the file menu, or by passing that filename as an
argument to mged on the command-line):
in mysphere.s sph (now press enter)
and you should see:
Enter X, Y, Z of vertex:
So once you know the order it expects it's args in, you can just add
that to the primitive definition in the python-brlcad-tcl repo.
--
-- You received this message because you are subscribed to the Google Groups DIYbio group. To post to this group, send email to diybio@googlegroups.com. To unsubscribe from this group, send email to diybio+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/diybio?hl=en
Learn more at www.diybio.org
---
You received this message because you are subscribed to the Google Groups "DIYbio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diybio+unsubscribe@googlegroups.com.
To post to this group, send email to diybio@googlegroups.com.
Visit this group at http://groups.google.com/group/diybio.
To view this discussion on the web visit https://groups.google.com/d/msgid/diybio/CA%2B82U9LnTJmLPfiNY8HsyeBWocHnsnRs0_5DbU6utM3rnnOG4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Re: [DIYbio] Re: Open-source CAD
3:20 PM |
Subscribe to:
Post Comments (Atom)






0 comments:
Post a Comment