Vice Ice
unread,Jun 14, 2009, 2:09:15 PM6/14/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sketch Users
See sample below. The polygon with style triangle ist devided to to
tikz filldraw and 2 draw commands. the draw commands are missing my
line style, so the borders are black. but they should be red.
%----------------------------------------------------------------------------------------------
def viewpoint (2,-0.5,1)
def lookat (0, 0, 0)
def upvector [0,0,1]
def pt0 (0,0,1)
def pt1 (1,0,1)
def pt2 (1,1,2)
def d0 (0,0,1.5)
def d1 (1,0,1.5)
def d2 (1,1,1.5)
special | \tikzstyle{prisma} = [fill=blue!70,draw=blue,fill
opacity=0.3,line width=.3pt] | [lay=under]
special | \tikzstyle{triangle} = [fill=red!70,draw=red,fill
opacity=0.3,line width=.3pt] | [lay=under]
def scene {
polygon [fill style=prisma] (pt0) (pt1) (pt2)
polygon [fill style=triangle] (d0) (d1) (d2)
}
put { view ((viewpoint),(lookat),[upvector]) } {scene}
global { language tikz }