First time here? Check our help page!
1

OS reset surface vertices when resetting XYZ origins of the space

hi i'm trying to reset the XYZ origins of a space to 0,0,0, but find that the vertices of the surfaces associated with the space stays the same and the geometry all get messed up. Is there a way to reset the surfaces along with the XYZ origin changes of the space?

I used the space.resetXOrigin() in the measure.

xchen's avatar
929
xchen
asked 2020-09-25 11:47:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

I think this cleanup_group method in this measure that cleans up space and other surface group origins may do what you want.

This method gets a bounding box of the surface group and resets origin to the min x,y,z. But you could change that to set it to model 0,0,0.

David Goldwasser's avatar
20.4k
David Goldwasser
answered 2020-09-27 14:22:21 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments