how to draw some stuff in OpenFlipper

Hello, I'm looking for some examples on how to draw some stuff on a mesh. For example, draw some lines on the triangle mesh, do i need to build a render for that ? Which plugin can i find some hint on that ? Thank you very much. cj

Hello cj, basically for drawing different stuff you can use any of the scenegraph nodes in <ACG/Scenegraph>. For drawing lines, you should have a look at the <ACG/Scenegraph/LineNode.hh> and e.g. the plugin Plugin-SelectionBase. You can use a line node in two different ways, either in "LineSegmentsMode" or in "PolygonMode". In PolygonMode you can add a bunch of points with add_point(const Vec3d& _v) and the lines connecting the points the in added order are then drawn. Alternatively you can use add_line(const Vec3d& _v0, const Vec3d& _v1) to draw a bunch of separate lines. //Henrik For example basically you can use the you can use On Thu, 15 Dec 2011 22:04:27 +0800 canjiang ren <rencanjiang@gmail.com> wrote:
Hello,
I'm looking for some examples on how to draw some stuff on a mesh. For example, draw some lines on the triangle mesh, do i need to build a render for that ? Which plugin can i find some hint on that ?
Thank you very much. cj
-- Dipl.-Inform. Henrik Zimmer Phone +49 (0)241 80-21811 Computer Graphics Group Fax +49 (0)241 80-22899 RWTH Aachen University http://www.rwth-graphics.de Ahornstrasse 55, 52074 Aachen, Germany
participants (2)
-
canjiang ren
-
Henrik Zimmer