change viewing angle

73 views
Skip to first unread message

phil.a...@gmail.com

unread,
Oct 21, 2013, 7:33:13 AM10/21/13
to sketch...@googlegroups.com
Hi,

Is there a (simple?) way to rotate the viewing position? Ideally I would like to rotate it around the z-axis.

Apologies if this is a very basic problem but I couldn't find the solution in the documentation.
My code is just a list of polygons to be rendered as follows (many more polygons in my real example):


====================
polygon( -4.72225, -5.18114, -7.12919)( -3.42372, -5.87673, -7.32881)( -3.84587, -4.53812, -8.03641)( -4.72225, -5.18114, -7.12919)
polygon( -4.72225, -5.18114, -7.12919)( -3.84587, -4.53812, -8.03641)( -5.13147, -3.73992, -7.72335)( -4.72225, -5.18114, -7.12919)
polygon(  4.51493, -5.08705, -7.32848)(  4.82459, -6.10160, -6.28197)(  5.78043, -5.07248, -6.38950)(  4.51493, -5.08705, -7.32848)
global { language tikz }
====================


Thanks

Gene Ressler

unread,
Oct 21, 2013, 5:05:46 PM10/21/13
to sketch...@googlegroups.com
Hi Phil,
 
  Because Sketch does no clipping, the only difference between rotating the eye point and rotating the whole image is the sign of the rotation. 
 
  See the pierced tetrahedron code in Para 2.5 of the manual.  This should get you started. Wrap your polygons in a def and then apply a rotation to that def with a put.
 
Gene


--
You received this message because you are subscribed to the Google Groups "Sketch Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sketch-users...@googlegroups.com.
To post to this group, send email to sketch...@googlegroups.com.
Visit this group at http://groups.google.com/group/sketch-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
Gene Ressler
Reply all
Reply to author
Forward
0 new messages