Hi again, the reason is that points are rendered as spheres and lines are rendered as cyclinders/pipes in 3D. Thus if you have two points very close to each other in a very, very small coordinate frame it will look like a pipe (when you zoom in very close to a rendered surface, you will see the triangles, don't you ? ;) ). Normally, you use this method to draw lines in image volumes or something like that where the diameter of the pipe is very small compared to the "world" dimensions making the pipe look like a solid line.
Regards, Michael -----Ursprüngliche Nachricht----- Von: naresh [mailto:[email protected]] Gesendet: Freitag, 20. August 2010 15:09 An: Müller Michael Cc: [email protected] Betreff: Re: [mitk-users] How to Draw 3D line Dear Muller I tried to create like this but it shows like pipe with hole :) Is there any width to set for it ? Please see in attached picture mitk::PointSet::Pointer line = mitk::PointSet::New(); mitk::PointSet::PointType start,end; FillVector3D(start,0,0,0); FillVector3D(end,1,1,1); line->InsertPoint(0,start); line->InsertPoint(1,end); DataNode::Pointer lineNode = DataNode::New(); lineNode->SetData(line); lineNode->SetBoolProperty("show points", false); lineNode->SetBoolProperty("show contour", true); m_DataStorage->Add(lineNode); ----- Original Message ----- From: "Müller Michael" <[email protected]> To: "'naresh'" <[email protected]>; <[email protected]> Sent: Friday, August 20, 2010 5:33 PM Subject: AW: [mitk-users] How to Draw 3D line omg, the confusing code snippet is the strange outcome of some kind of outlook auto-completion. I try again (and this is the last attempt): myPointSetDataNode->SetBoolProperty("show points", false); myPointSetDataNode->SetBoolProperty("show contour", true); -----Ursprüngliche Nachricht----- Von: naresh [mailto:[email protected]] Gesendet: Freitag, 20. August 2010 13:37 An: [email protected] Betreff: [mitk-users] How to Draw 3D line Hi How can i draw 3D line in MITK ? I found mitkLineVtkMapper3D and PointSet can do this job but did not found proper way how to do that. Please anyone can tell me how to do that ? Naresh ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
