[brlcad-devel] Nested TCL in mged

2021-01-19 Thread Daniel Roßberg
Why does the following code behave differently in mged, depending on if a database is loaded or not: set P1 "0 0" set P2 "1 1" set L1 [list $P1 $P2] Regards, Daniel ___ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.

Re: [brlcad-devel] GSoC: Creation of NURBS

2021-01-19 Thread Tom Browder
On Tue, Jan 19, 2021 at 14:11 Rob McDonald wrote: > AngelScript's API is C++, so it makes embedding it into C++ programs (and > exposing those data structures) a bit easier than Lua's C API. > Sean, I still think Raku (hhtps://raku.org) with its NativeCall interface to C/C++ is a natural fit for

Re: [brlcad-devel] GSoC: Creation of NURBS

2021-01-19 Thread Rob McDonald
AngelScript's API is C++, so it makes embedding it into C++ programs (and exposing those data structures) a bit easier than Lua's C API. For practical purposes for users, the main difference is that AngelScript has a very C/C++ like syntax -- vs. Lua's Scheme like syntax. Just one less programmin

Re: [brlcad-devel] GSoC: Creation of NURBS

2021-01-19 Thread Christopher Sean Morrison via brlcad-devel
Hi Rob, Thanks for the suggestion. How is AngelScript differentiated from Lua? Sounds very similar to Lua and Tcl. For what it’s worth, BRL-CAD already has an embedded scripting language in the GUI — it’s Tcl quite pervasively. That embedding is also exposed in config file parsing, numerous

Re: [brlcad-devel] GSoC: Creation of NURBS

2021-01-19 Thread Rob McDonald
Not to take this thread in a different direction Sean - if you get serious about embedding a scripting language into BRL-CAD, you might also consider AngelScript . It is much less well known than many of the alternatives, but it has the feature that it

Re: [brlcad-devel] GSoC: Creation of NURBS

2021-01-19 Thread Christopher Sean Morrison via brlcad-devel
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 m

[brlcad-devel] GSoC: Creation of NURBS

2021-01-19 Thread Daniel Roßberg
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 langua