Skip to content

Commit

Permalink
Mention Translation, SetTransformRelativeTo
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Jan 23, 2025
1 parent fef0b90 commit 80cff05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/doc/ifc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ X3D nodes can be mapped back to IFC classes, which is useful e.g. for picking 3D
We define some utility methods to operate on IFC classes:

- cgeref:TIfcProduct.AddMeshRepresentation[], cgeref:TIfcProduct.AddBoxRepresentation[] (adding meshes to products)
- cgeref:TIfcProduct.RelativePlacement[] (move products)
- cgeref:TIfcProduct.Translation[], cgeref:TIfcProduct.SetTransformRelativeTo[] (move products)
- cgeref:TIfcObjectDefinition.AddIsDecomposedBy[], cgeref:TIfcProject.BestContainer[] (relationship between larger spatial elements)
- cgeref:TIfcSpatialElement.AddContainedElement[], cgeref:TIfcSpatialElement.GetContainedElements[] (relationship to add elements (products) inside larger spatial elements)
- cgeref:TIfcElement.AddOpening[] (add openings to elements)
Expand Down Expand Up @@ -256,6 +256,7 @@ begin
Vector3(0, 0, 0),
Vector3(10, 0.5, 2) // Z is "up", by convention, in IFC
));
Wall.Translation := Vector3(1, 2, 0);
IfcFile.Project.BestContainer.AddContainedElement(Wall);

// modify the contents of RootNode, to reflect above new wall.
Expand Down

0 comments on commit 80cff05

Please sign in to comment.