Skip to content

"Hello, is there a method in iTwin.js for directly transforming a model into the current world coordinates?" #7188

Answered by bbastings
MYDJH asked this question in Q&A
Discussion options

You must be logged in to vote

The geometry stream entries are stored relative to the element's placement. The easiest way to iterate over the geometry in world coordinates is to create the iterator from a GeometricElementProps. World Coordinate Iterator from GeometricElement3d

Similarly, if you were to create a new element, it's geometry should also be stored relative to a meaningful placement and not world coordinates. GeometryStreamBuilder can automatically transform world coordinate geometry relative to the desired placement using one of the method to specify the local-to-world transform such as. If you were creating a new element from the geometry extracted from an existing element, it might make sense to create t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MYDJH
Comment options

Answer selected by MYDJH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants