BRL-CAD

BRL-CAD Lua binding: Test BRLCAD.database:Title() (part #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: The library with the Lua bindings is missing automatic tests. They are some programs which run Lua code, and a human can start them to see if it works, but they are not usable for automatic library tests. Such a testing function needs do decide by itself if everything went well and adjust its return value accordingly.

Write a program which tests the BRLCAD.database:Title() function, decides if the return value is okay, and returns 0 for a successful test and a value > 0 otherwise.

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