xBimTeam / XbimEssentials

A .NET library to work with data in the IFC format. This is the core component of the Xbim Toolkit
https://xbimteam.github.io/
Other
485 stars 172 forks source link

Position of insertCopy object #499

Closed VuGiaHuy-0808 closed 1 year ago

VuGiaHuy-0808 commented 1 year ago

Hi Xbim team. Currently, I create a model in a picture below. A cylinder is created by start point and end point using IfcExtrudedAreaSolid. Two other objects is copied to main model by InsertCopy function and changed z coordinate of LocalPlacement to z value of start point and end point. My expectation is 2 objects have a position equal to start point & end point but it doesn't. Moreover, a distance between 2 objects is greater than the cylinder's height. Main model and object model is the same unit (mm). Could u give me some clues, thanks. Screenshot 2023-03-20 102629

QuangHieu1704 commented 1 year ago

Yes, I face the same issue as yours. I think the problem may comes from local/global location or ratio between 2 objects. Can anyone solve this?

martin1cerny commented 1 year ago

Placement and orientation of geometric representations in IFC is a complex domain. You need to consider the entire placement hierarchy structure of the product + transformations applied to mapped representations (potentially non-uniform) + extruded shape position.