First time here? Check out the Help page!

Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

OS reset surface vertices when resetting XYZ origins of the space

asked 4 years ago

xchen's avatar

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 4 years ago

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.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 4 years ago

Seen: 115 times

Last updated: Sep 27 '20