<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 22, 2017 at 4:27 AM, alican <span dir="ltr"><<a href="mailto:alican1812@hotmail.com" target="_blank">alican1812@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have an SVG file, that I would like to convert into a mesh. It should have<br>
some depth, but the depth and Z position can be the same for all points. I<br>
have thought about getting all points coordinates from SVG and adding the<br>
same z to all points, then duplicating the process with a slightly different<br>
z, then merging these 2 data sets into one mesh.<br>
<br>
There is at least 2 problems with this approach:<br>
1) it is slow and inefficient<br>
2) if there are some shapes in the SVG, I do not have real points, I need to<br>
create the points first, for example, I have 2 centers and 2 radiuses for an<br>
ellipse, so I can generate some points on this ellipse' curve.<br>
This makes the process even more slow.<br>
<br>
What would be a more efficient approach, if there is one?<br>
Thanks<br><br></blockquote><div> </div><div>From a complexity standpoint there can't be a more efficient way to do this than you have described. You need to iterate over the points in the SVG file at least once, which you do in your algorithm. There may be tweaks you can do such as generate points with the same x,y value and different z values at the same time and store these in your mesh, but that is a constant performance improvement. Unless you are dealing with billions of points, what you describe should be quite fast on any computer.</div><div><br></div><div>Cory</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-would-you-go-about-converting-an-SVG-file-into-3D-mesh-tp5744549.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/How-would-you-go-about-<wbr>converting-an-SVG-file-into-<wbr>3D-mesh-tp5744549.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div></div>