Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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_GoodbodyHugh_Goodbody Member Posts: 38 PRO
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.

Comments

  • eric_pestyeric_pesty Member Posts: 703 PRO
    @Hugh_Goodbody

    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.
  • Hugh_GoodbodyHugh_Goodbody Member Posts: 38 PRO
    Perfect, thanks very much Eric.
Sign In or Register to comment.