<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Dear Kenneth,<div>Thanks a lot for your reply. I think I didn't describe the question clearly.&nbsp;</div><div>a) The curve isn't planar. It isn't close to planar neither. It is a loop, an output of vtkSplineFilter.</div><div>b) The surface isn't close to planar near the curve.</div><div>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 <i>lying </i>on the surface. It needn't be&nbsp;accurate, just looks smooth.</div><div><br></div><div>Regards,</div><div>Yue<br>&nbsp;<br><br><br><br><div></div><div id="divNeteaseMailCard"></div><br>At 2013-11-28 14:39:54,"Kenneth&nbsp;Sloan-3&nbsp;[via&nbsp;VTK]"&nbsp;&lt;<a href="/user/SendEmail.jtp?type=node&node=5724694&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<br> <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">

        A lot depends on the nature of the curve and the surface.
<br><br>a) is the curve (close to) planar?
<br>b) is the surface close to planar near the curve?
<br>c) do you want the curve literally "projected" onto the surface, or do want
<br>&nbsp; &nbsp;the curve somehow "draped" over the surface?
<br><br>Easiest is probably the case where the surface is large and locally "flat" near the curve, and the curve
<br>itself is relatively flat. &nbsp;Select a compromise plane (or, from another point of view, a compromise vector from the curve in the direction of the surface). &nbsp;Sample the curve, and cast rays from curve sample points in the direction of the surface. &nbsp;Find points of intersection and connect the dots.
<br><br>If both the surface and the curve are convoluted, then the problem becomes much harder, and the answer less well defined.
<br><br>Good luck!
<br>--
<br>Kenneth Sloan
<br><a href="/user/SendEmail.jtp?type=node&amp;node=5724691&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><br><br>On Nov 28, 2013, at 05:49 , Green Hedgehog &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=5724691&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br><div class="shrinkable-quote"><div class='shrinkable-quote'><br>&gt; Dear all,
<br>&gt; 
<br>&gt; There is a closed surface with a curve near it. I want to project the curve
<br>&gt; onto the surface and then render . Does anyone have any suggestions?
<br>&gt; 
<br>&gt; Yue
<br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; --
<br>&gt; View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690.html" target="_top" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690.html</a><br>&gt; Sent from the VTK - Users mailing list archive at Nabble.com.
<br>&gt; _______________________________________________
<br>&gt; Powered by www.kitware.com
<br>&gt; 
<br>&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_top" rel="nofollow" link="external">http://www.kitware.com/opensource/opensource.html</a><br>&gt; 
<br>&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_top" rel="nofollow" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br>&gt; 
<br>&gt; Follow this link to subscribe/unsubscribe:
<br>&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_top" rel="nofollow" link="external">http://www.vtk.org/mailman/listinfo/vtkusers</a></div></div>_______________________________________________
<br>Powered by www.kitware.com
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_top" rel="nofollow" link="external">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_top" rel="nofollow" link="external">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_top" rel="nofollow" link="external">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690p5724691.html" target="_top" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690p5724691.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from How to project a curve onto surface, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></blockquote></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-project-a-curve-onto-surface-tp5724690p5724694.html">Re:Re: How to project a curve onto surface</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>