Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Shaded Views API Transformation Matrix Zoom
Hugh_Goodbody
Member Posts: 40 PRO
in General
I am trying to get the shaded views image of a part which is zoomed to its extents. I am using the shadedviews api call.
I have constructed a transformation matrix but the image is very small, does anyone know the best way to amend the transformation matrix so that the image is zoomed to its extents? I do have access to the min and max corners of the bounding box.
Thanks in advance.
0
Comments
From my very rudimentary knowledge, the "pixelsize" value is that defines the zoom and the matrix only affects the "direction"/"pan".
If you set "pixelsize" to 0 it will fill the image with the model.