GSoC/GCI Archive
Google Code-in 2014 BRL-CAD

Expose and validate sketch and extruded sketch centroid analysis

completed by: Andromeda Galaxy

mentors: Isaac Kamga, Deepak

This is a follow-on task to https://www.google-melange.com/gci/task/view/google/gci2014/5297789445603328

This task ties it all together so that sketches and extrude objects will report a centroid via the 'analyze' command.

Test the centroid calculation with at least two simple test cases where the centroid is known (e.g., a sphere and a box that are not centered within the uv domain).

Ensure the analyze command is reporting centroid values for sketch and extrude objects. Make modifications as needed. Submit a patch that enables their reporting during invocations of the analyze command.

References:
  • src/libged/analyze.c
Modify:
  • src/libged/analyze.c
  • possibly also src/libged/primitives/sketch
  • possibly also src/libged/primitives/extrude