View Issue Details

IDProjectCategoryView StatusLast Update
0000814FreeCADPatchpublic2014-01-12 17:58
Reporterthuswm Assigned ToJriegel 
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Summary0000814: Local Coordinate System
DescriptionThe attached diff is my implementation of a local coordinate system.

The implementation is not complete and will need further work but it is a start. The idea is to have a concept that is fairly disconnected from other objects and only holds information about the orientation and the origin of the local coordinate system. It also has member functions for transforming coordinates from this system to the global coordinate system.

The object is selectable but does not scale to screen in the current version. The header files give an idea of how to use the object. To create a local coordinate system in python write:

doc=App.newDocument()
coord=doc.addObject("App::CoordinateSystem")

Then it is possible to set origin and orientation with the appropriate member functions:

coord.setOrientation( matrix )
coord.setOrigin( vector )

Please try it!
TagsNo tags attached.
FreeCAD Information

Activities

2012-08-09 18:35

 

localcoord.patch (Attachment missing)

yorik

2012-08-11 00:08

administrator   ~0002314

Hi,
Nice work, it works well...

But my question is: what is its purpose, and how is it fundamentally different than a Placement? Wouldn't it be more interesting to add conversion methods (to/from local coords) to the placement object instead? And the placement object could also receive a visual axes system, that could be switched on/off...

Why a separate object?

wmayer

2012-08-11 13:02

administrator   ~0002315

Let's wait for Jürgen to check if this is already available in the assembly branch and how much the overlap is...

Jriegel

2014-01-12 17:58

administrator   ~0004057

Its part of the Assembly....

Issue History

Date Modified Username Field Change
2012-08-09 18:35 thuswm New Issue
2012-08-09 18:35 thuswm File Added: localcoord.patch
2012-08-11 00:08 yorik Note Added: 0002314
2012-08-11 13:02 wmayer Note Added: 0002315
2014-01-12 17:58 Jriegel Note Added: 0004057
2014-01-12 17:58 Jriegel Status new => closed
2014-01-12 17:58 Jriegel Assigned To => Jriegel
2014-01-12 17:58 Jriegel Resolution open => fixed