Skip to main content
Open

Extract Transformation Matrix

Related products:Integrations
  • September 10, 2019
  • 3 replies
  • 46 views

takashi
Celebrity

From this Q&A: Extracting transformation Matrix

I need to extract IFCDIRECTION and IFCCARTESIANPOINT from IFC geometries. A workaround is to extract the transformation matrix from log and parse that, but it's a roudabout way.

It would be great if the coefficients of transformation matrix could be extracted as feature attributes (or the IFC reader could read direction and Cartesian point coordinates optionally).

3 replies

itsmatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • September 25, 2019

takashi
Celebrity
  • Author
  • September 25, 2019

Hi @virtualcitymatt, thanks for your comment. Yes I found the method, but the geometry is an Extrusion, so you need to transform it into a BrepSolid and then extract a Face from that with some transformers in order to apply the method. I feel it's too redundant and inefficient. I therefore hope that Safe will provide a transformer or a function that extracts the transformation matrix directly from any geometry including a complex solid and a point cloud etc.


itsmatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • September 25, 2019

Ah yeah, I see that the method isn't there for other geometries - yeah it's a great idea this one. I would use it too!