[vtkusers] How to project a curve onto surface

Green Hedgehog yy198903 at 163.com
Thu Nov 28 07:24:54 EST 2013


Dear Kenneth,
Thanks a lot for your reply. I think I didn't describe the question clearly. 
a) The curve isn't planar. It isn't close to planar neither. It is a loop, an output of vtkSplineFilter.
b) The surface isn't close to planar near the curve.
c) I didn't get you quite well about this point. I mean I want the result just looks like you draw the curve on the surface, that means after projecting the result curve is totally lying on the surface. It needn't be accurate, just looks smooth.


Regards,
Yue
 





At 2013-11-28 14:39:54,"Kenneth Sloan-3 [via VTK]" <ml-node+s1045678n5724691h57 at n5.nabble.com> wrote:
A lot depends on the nature of the curve and the surface.

a) is the curve (close to) planar?
b) is the surface close to planar near the curve?
c) do you want the curve literally "projected" onto the surface, or do want
   the curve somehow "draped" over the surface?

Easiest is probably the case where the surface is large and locally "flat" near the curve, and the curve
itself is relatively flat.  Select a compromise plane (or, from another point of view, a compromise vector from the curve in the direction of the surface).  Sample the curve, and cast rays from curve sample points in the direction of the surface.  Find points of intersection and connect the dots.

If both the surface and the curve are convoluted, then the problem becomes much harder, and the answer less well defined.

Good luck!
--
Kenneth Sloan
[hidden email]


On Nov 28, 2013, at 05:49 , Green Hedgehog <[hidden email]> wrote:


> Dear all,
>
> There is a closed surface with a curve near it. I want to project the curve
> onto the surface and then render . Does anyone have any suggestions?
>
> Yue
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers



If you reply to this email, your message will be added to the discussion below:
http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690p5724691.html
To unsubscribe from How to project a curve onto surface, click here.
NAML



--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690p5724694.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131128/090ce220/attachment.htm>


More information about the vtkusers mailing list