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
Zeige Antworten nach Diskussionsstrang
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
openflipper@lists.rwth-aachen.de