BRL-CAD

BRL-CAD Lua binding: Object Attributes (#1 of 2)

Lua (https://www.lua.org) is a simple scripting language which can be easily integrated in other software. Therefore, why not bind BRL-CAD to it and create and modify geometries with Lua scripts? This task is about the creation of new functions in Lua.

In preparation, you have to compile and Install BRL-CAD from latest source code and compile the experimental features from BRL-CAD's rt^3 module. There are own tasks for this.

Here: Prepare the creation of the Lua bindings for the BRL-CAD C++ core interface Object class attribute methods. There are already functions for the Object methods Name, SetName, Type, and IsValid. The attribute methods require a Lua equivalent of the BRLCAD::Object::AttributeIterator class. For this task, you have to implement the Lua bindings of this class.

When you are done, SUBMIT a patch file which can be applied to the rt^3 branch of the BRL-CAD repository.

Task tags

  • lua
  • c++

Students who completed this task

H1manshu

Task type

  • code Code
close

2019