BRL-CAD

BRL-CAD Lua binding: Sphere

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. All changes will happen in the src/embeddedLua directory of BRL-CAD's rt^3 branch.

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: Create Lua bindings for the BRL-CAD C++ core interface Sphere class. This is a simple Object class and a good possibility to learn about binding Lua to a library. There is already the Halfspace Object class implemented in Lua (halfspace.h, halfspace.cpp), which can be used as template and starting point.

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