I have just open source StCAD (MIT license) which has the code for freeCAD.
http://askoh.com/stcad Although written in VisualWorks, I hope Pharo developers can port it in part
All the best,
What is 'StCAD'?
'StCAD' is a basic 3D CAD framework in Smalltalk (VisualWorks 8.x). It
the GF/ST 2D drawing framework into 3D. It also include 'StCAD-Geo' which is
the 3D geometric domain, 'StCAD-Math' which provides the mathematical
for 3D CAD and motion simulation computations, and 'StCAD-Doc' which is a
simple word processor. 'StCAD-Math' is also suitable for engineering,
scientific and business computing. The parcels are open source using MIT
License. Users can use these parcels with other private software to create
applications like motion simulation, finite element analysis, CAD,
'StCAD' allows users to create and manipulate assemblies, which are
collections of 3D parts. The parts are 3D solids, which can be connected by
joints, constraints, contacts, actuators, springs, dampers or forces. The
parts and connections define the structure or mechanism that the assembly is
meant to represent. Animation is possible, if the user can provide time
of position and orientation data for the parts.
Users can also obtain output data in the form of plots and tables. XY plots
can be zoomed and set to equal scales. Data series available include linear
and angular displacements, velocities, accelerations and other user
'StCAD' has been used to create a freeware called 'freeCAD' which is a 3D
with Motion Simulation. For more information visit: