I'm trying to draw a joint-link kinematic pair (arm) and an arrow indicating its
center of gravity.
I saved two matching views of the arm and the arrow by doing the followings:
mged> B arm.r
mged> saveview arm.rt
mged> e arrow.c
mged> d arm.r
mged> saveview arrow.rt
Then I merged and rendered the two by doing the followings. The resulting image
perl -pi -e 's/^rt/rtedge/' arm.rt arrow.rt
./arm.rt -W -s850
./arrow.rt -W -s850
pixmerge -l -C 255/255/255 arm.rt.pix arrow.rt.pix > image.pix
I have 2 questions:
1. Is there a way to get the body of the arrow which is *inside* the arm
represented by dashed/dotted lines instead of continuous lines?
2 (side question). As you can see, I represented the arrow as a combination of
a rcc (body) and a trc (head). I also represented the rotation axes of the arm
and of the motor by a combination of rccs, in order to give them the effect of a
dashed line. However, it would be great if they could be represented by *real*
(2d) lines and arrow heads.Is there a way to create objects such as continuous-,
dotted-, dashed-lines, and arrow heads, and to apply transforms like rotations
and translations to place them arbitrarily in space?
Log in to post a comment.