#65 Merging two rtedge renderings (and a side question)

closed
Sean Morrison
Raytrace (5)
7
2010-10-27
2010-10-09
Matteo Morelli
No

Hello,

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
mged> quit

Then I merged and rendered the two by doing the followings. The resulting image
is attached.

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?

--
Matteo

Discussion

  • Matteo Morelli
    Matteo Morelli
    2010-10-09

     
    Attachments
  • Sean Morrison
    Sean Morrison
    2010-10-13

    • labels: --> Raytrace
    • priority: 5 --> 7
    • assigned_to: nobody --> brlcad
    • status: open --> pending
     
  • Sean Morrison
    Sean Morrison
    2010-10-13

    1. Not automatically. It's possible to manually generate dashed/dotted lines using an edited wireframe overlay, but it would be tedious.

    2. That feature is presently in the works. Annotations, labels, arrows, etc. Without the annotation primitive implemented, your manual method works.

    That said, here's a few comments regarding your current approach. You can create one copy of dotted/dashed lines now and apply transforms like rotations and translations to place them arbitrarily in space. Just group them all together into one combination at the origin, then reference instances of that combination with your transformation to put them into place.

    Additionally, you might want to try the "rtwizard" tool, available in the same install directory as mged. It will do multiple rtedge passes and perform the pixmerging automatically for you. It also has a handful of visualization modes that might be of interest.

     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending --> closed