Hi,

Yes, sure, but, let's stay with the creation of NURBS entities for the
moment. It is very unsatisfactory that this can only be done with he help
of external programs.

OpenVSP is a good reference. It's about Design Cockpit 43, a somehow
similar application (before somebody asks: I've never touched or even seen
this software, I try to help somebody who has the task to export the
geometry to BRL-CAD). DC43 is written in Java, and it was decided that it's
the best to write a text file which can be parsed with mged. This seems to
work for almost all primitives, beside twisted lofts.

The idea with the scripting resulted from laziness: I consider it as easier
to wrap the C++ by a scripting language than to invent an ASCII .3dm file
format. However, the final decision (scripting or ASCII 3DM, which
scripting language, swig yes or no) could be made part of the student's
proposal.

Regards,
    Daniel

Am Di., 19. Jan. 2021 um 19:50 Uhr schrieb Christopher Sean Morrison via
brlcad-devel <brlcad-devel@lists.sourceforge.net>:

> Hi Daniel,
>
> Yes, import via 3dm-g or step-g are the two main methods.  They can also
> be created directly with openNURBS — there are several source code examples
> in src/proc-db (see the C++ files).
>
> Lua is good stuff and obviously really easy to integrate.. but there has
> also been good progress made on a direct python interface too.  That code
> currently resides in a repo fork, but was last worked on by Jaipal in 2018
> — he’s got a nice article up at
> https://medium.com/@Mr_Jaypee/brl-cads-python-procedural-geometry-990e3c286a63
>  and
> the code is on github.
>
> I don’t think python or lua as a new required dep are a problem at all.
> I’ve had a goal for years to have a built-in procedural primitive where one
> can describe geometry and define behavior with code (starting with either
> tcl, lua, python, or pure “ged” command listings).  Orthogonal to creating
> NURBS entities of course..
>
> Cheers!
> Sean
>
>
> On Jan 19, 2021, at 1:39 PM, Daniel Roßberg <danielmrossb...@gmail.com>
> wrote:
>
> Hello all,
>
> I was recently asked, how to create a NURBS solid in BRL-CAD.
> Unfortunately, I didn't know another possibility than importing them from
> Rhino. It should however be possible to create them with openNURBS
> functionality.
>
> My idea is to wrap the openNURBS classes by the Lua scripting language.
> Because of its compactness, it would be possible to bundle it with BRL-CAD
> and have it accessible from mged.
>
> It should also be mentioned that there is already a Python scripting
> interface with the rhino3dm interface. But, making this standard for
> BRL-CAD would bloat the program a bit, or?
>
> What do you think?
>
> Regards,
>     Daniel
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
>
> _______________________________________________
> BRL-CAD Developer mailing list
> brlcad-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/brlcad-devel
>
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to