<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi,</p>
<p>As requested I attached with that email a list of 8 segfaulting
polyhedrons. It happens with a centre of (0,0,0) and an oZ normal.</p>
<p>Regards,<br>
</p>
Pierre<br>
<div class="moz-cite-prefix">On 01/04/2017 10:11 AM, Mathieu
Westphal wrote:<br>
</div>
<blockquote
cite="mid:CAC2t4URceP=3uhSOxsNK1pPsrz0TWvx3yCGdZXZ4m_5FrFt_LQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi<br>
<br>
It may be a different issue than the one i'm fixing. If you
can share the segfaulting polyhedron, please do so i can take
a look when i get back on this issue ( which my not be soon,
feel free to find other solutions)<br>
<br>
</div>
Regards,<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">Mathieu Westphal<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Jan 3, 2017 at 10:46 PM, Pierre
Van Hauwaert <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:pierre@rtech-engineering.nl" target="_blank">pierre@rtech-engineering.nl</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hi Mathieu and Thomas,</p>
<p>Thank you for the suggestions.</p>
<p>1) I tried the tetrahedralize filter on my data but I
did not get the results I was expecting. I have a
polyhedron which is not convex (<a
moz-do-not-send="true"
class="m_-4428553163723695625moz-txt-link-freetext"
href="https://postimg.org/image/9s3egl8rz/"
target="_blank"><a class="moz-txt-link-freetext" href="https://postimg.org/image/">https://postimg.org/image/</a><wbr>9s3egl8rz/</a>)
and the filter fill the gap as you can see here (<a
moz-do-not-send="true"
class="m_-4428553163723695625moz-txt-link-freetext"
href="https://postimg.org/image/5u1nt6d2h/"
target="_blank"><a class="moz-txt-link-freetext" href="https://postimg.org/image/">https://postimg.org/image/</a><wbr>5u1nt6d2h/</a>)
and it is not what I was expecting. Indeed, the initial
purpose of the slice was to visualize the hole.<br>
</p>
2) I tried this fix: <a moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2088"
target="_blank">https://gitlab.kitware.com/vtk<wbr>/vtk/merge_requests/2088</a><br>
only modifying the 2 files (<a moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2088/diffs#15fe983b62f8470f9429f461e8b010d03b476c0c"
style="box-sizing:border-box;background-color:transparent;color:rgb(92,92,92);text-decoration:none;font-family:"Source
Sans Pro","Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"
target="_blank"><strong
style="box-sizing:border-box;font-weight:bold">Common/DataModel/<wbr>vtkPolyhedron.cxx<span
class="m_-4428553163723695625Apple-converted-space">
</span></strong></a> <span><span
class="m_-4428553163723695625Apple-converted-space"> </span></span><a
moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2088/diffs#6df1a223bec663530f25d2d214b6b11611fb9cdf"
style="box-sizing:border-box;background-color:transparent;color:rgb(92,92,92);text-decoration:none;font-family:"Source
Sans Pro","Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"
target="_blank"><span
class="m_-4428553163723695625Apple-converted-space"></span><strong
style="box-sizing:border-box;font-weight:bold">Common/Core/vtkSetGet.h) <span
class="m_-4428553163723695625Apple-converted-space">
</span></strong></a><br>
And compile VTK alone. I used a python script (activating
the python VTK wrapping) to do the test with the vtkCutter
function but I ended having the same exact issue
(segfault, no error message) with only the polyhedron that
have more than 1024 faces. I am not sure I should get the
same results if I manage to compile paraview. When I will
manage I will get back to you. <br>
<br>
Thanks,<br>
<br>
Pierre
<div>
<div class="h5"><br>
<br>
<br>
<div class="m_-4428553163723695625moz-cite-prefix">On
03-01-17 16:51, Mathieu Westphal wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi<br>
<br>
Indeed, incorrect copy paste. thanks for pointing
it out.<br>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div
class="m_-4428553163723695625gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Mathieu Westphal<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, Jan 3, 2017 at
4:46 PM, T.J. Corona <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:tj.corona@kitware.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:tj.corona@kitware.com">tj.corona@kitware.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div>Hi Mathieu and Pierre,</div>
<div><br>
</div>
<div>Perhaps you meant to point to this
“work in progress” branch?</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2088"
target="_blank">https://gitlab.kitware.com/vtk<wbr>/vtk/merge_requests/2088</a></div>
<div><br>
</div>
<div>Sincerely,</div>
<div>T.J.</div>
<br>
<div>
<div
style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div
style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div
style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div
style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div
style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<div>Thomas J. Corona, Ph.D.<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a
moz-do-not-send="true"
href="tel:%28518%29%20881-4443"
value="+15188814443"
target="_blank">518-881-4443</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div class="m_-4428553163723695625h5"> <br>
<div>
<blockquote type="cite">
<div>On Jan 3, 2017, at 10:18 AM,
Mathieu Westphal <<a
moz-do-not-send="true"
href="mailto:mathieu.westphal@kitware.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:mathieu.westphal@kitware.com">mathieu.westphal@kitware.com</a></a>>
wrote:</div>
<br
class="m_-4428553163723695625m_-768954150740546535Apple-interchange-newline">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>Hello<br>
<br>
</div>
for your information there
is a bug in the slicing of
vtkPolyHedron that can
cause a segfault.<br>
</div>
<div>It looks very much like
your error. It has yet to
be corrected.<br>
</div>
<a moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/issues/16877"
target="_blank">https://gitlab.kitware.com/vtk<wbr>/vtk/issues/16877</a><br>
<br>
</div>
You can already test this
"work in progress" branch to
see if this fixes your issue
:<br>
<a moz-do-not-send="true"
href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2304"
target="_blank">https://gitlab.kitware.com/vtk<wbr>/vtk/merge_requests/2304</a><br>
<br>
</div>
<div>You could of course modify
your data to tetrahedron with
tetrahedralize filter.<br>
</div>
<div><br>
</div>
Regards,<br>
</div>
<div class="gmail_extra"><br
clear="all">
<div>
<div
class="m_-4428553163723695625m_-768954150740546535gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Mathieu
Westphal<br>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Tue,
Jan 3, 2017 at 4:10 PM, Pierre
Van Hauwaert <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:pierre@rtech-engineering.nl"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:pierre@rtech-engineering.nl">pierre@rtech-engineering.nl</a></a>></span>
wrote:<br>
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000">
<div
class="m_-4428553163723695625m_-768954150740546535m_-1893844449759964379moz-text-html"
lang="x-unicode"> Hi,<br>
<br>
I am using paraview to
visualise my data. I
generate my data using a
combination of the 2
following types (<a
moz-do-not-send="true"
class="m_-4428553163723695625moz-txt-link-freetext"
href="http://www.vtk.org/doc/nightl"
target="_blank"><a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightl">http://www.vtk.org/doc/nightl</a></a><wbr>y/html/vtkCellType_8h_source.h<wbr>tml)<br>
<font><a moz-do-not-send="true" class="m_-4428553163723695625m_-768954150740546535m_-1893844449759964379code" href="http://www.vtk.org/doc/nightly/html/vtkCellType_8h.html#ab1d6fd1f3177b8a2a32bb018807151f8a06a70888292dc4309e42404af594fbb4" style="font-weight:normal;text-decoration:none;font-family:monospace,fixed;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;letter-spacing:normal;text-align:start;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(251,252,253)" target="_blank">VTK_VOXEL</a><span style="font-family:monospace,fixed;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(251,252,253);display:inline!important;float:none"> = 11</span><br>
<span style="font-family:monospace,fixed;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(251,252,253);display:inline!important;float:none">VTK_POLYHEDRON = 42
</span>I can visualize that data with parview without a problem. But,
because I ended up
having a segfault
without any error
message when slicing
(Z=0) the data. I
decomposed my data in
separate files for
each <span style="font-family:monospace,fixed;font-size:13px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(251,252,253);display:inline!important;float:none">VTK_POLYHEDRON </span></font>in
order to investigate the
problem.<br>
<br>
I found out that only
the polyhedrons with the
largest size were having
the problem. The limit
is somewhere between the
2 files:<br>
- poly-F1000-2395.vtu :
working: 466 points, 928
faces <br>
- poly-F1000-2987.vtu :
segfault when slicing:
546 points, 1088 faces <br>
<br>
So my guess is that
there is a limit for the
number of points or the
number of faces that can
have the polyhedron
(1024 ?) if I want to be
able to use the slice
function.<br>
<br>
My questions are : <br>
1) Is there actually a
limitation in Paraview
(VTK?) regarding the
number of faces or the
number of the point that
the slice function can
handle for a polyhedron
?<br>
2) If there is this
limitation, is there an
option to remove it in
Paraview ? (specific
version, compilation
option, etc) <br>
3) If there is this
limitation, is there any
work around that exist
so I am able to slice my
data ? For example a
different format ?<br>
<br>
<br>
I attached the data to
be able to back up my
statement:<br>
<br>
poly-F1000-*.vtu : files
describing a polyhedron
each: <br>
poly-F1000.pvd : load
all those files<br>
<br>
Biggest file for which
the slicing works (size,
name):<br>
34K poly-F1000-2395.vtu<br>
<br>
The 8 biggest files
triggering the crash
when doing a slice:
(size, name)<br>
38K poly-F1000-2987.vtu<br>
39K poly-F1000-2983.vtu<br>
39K poly-F1000-2935.vtu<br>
39K poly-F1000-2988.vtu<br>
39K poly-F1000-2931.vtu<br>
40K poly-F1000-2937.vtu<br>
40K poly-F1000-2981.vtu<br>
40K poly-F1000-2930.vtu<br>
fail.pvd: load those 8
files<br>
<br>
the other files can be
sliced without any
issues<br>
<br>
<br>
Thanks, <br>
<span
class="m_-4428553163723695625m_-768954150740546535HOEnZb"><font
color="#888888"> <br>
<font size="3">Pierre
</font><br>
<div
class="m_-4428553163723695625m_-768954150740546535m_-1893844449759964379moz-signature"><font
size="3"><font
size="2"> <br>
-- <br>
R.Tech
Engineering
B.V. <br>
Eekholt 42 -
1112 XH Diemen
- the
Netherlands <br>
Tel: +31 (0) 2
04 95 02 22 <br>
</font></font></div>
</font></span></div>
</div>
<br>
______________________________<wbr>_________________<br>
Powered by <a
moz-do-not-send="true"
href="http://www.kitware.com/"
rel="noreferrer"
target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a></a><br>
<br>
Visit other Kitware
open-source projects at <a
moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
rel="noreferrer"
target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensou">http://www.kitware.com/opensou</a><wbr>rce/opensource.html</a><br>
<br>
Please keep messages
on-topic and check the
ParaView Wiki at: <a
moz-do-not-send="true"
class="m_-4428553163723695625moz-txt-link-freetext"
href="http://paraview.org/Wiki/ParaV" target="_blank"><a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaV">http://paraview.org/Wiki/ParaV</a></a><wbr>iew<br>
<br>
Search the list archives at:
<a moz-do-not-send="true"
class="m_-4428553163723695625moz-txt-link-freetext"
href="http://markmail.org/search/?q=" target="_blank">http://markmail.org/search/?q=</a><wbr>ParaView<br>
<br>
Follow this link to
subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://public.kitware.com/mailman/listinfo/paraview"
rel="noreferrer"
target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
<br>
</blockquote>
</div>
<br>
</div>
______________________________<wbr>_________________<br>
Powered by <a
moz-do-not-send="true"
href="http://www.kitware.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a></a><br>
<br>
Visit other Kitware open-source
projects at <a
moz-do-not-send="true"
class="m_-4428553163723695625moz-txt-link-freetext"
href="http://www.kitware.com/"
target="_blank"><a class="moz-txt-link-freetext" href="http://www.kitware.com/">http://www.kitware.com/</a></a>opensou<wbr>rce/opensource.html<br>
<br>
Please keep messages on-topic and
check the ParaView Wiki at: <a
moz-do-not-send="true"
href="http://paraview.org/Wiki/ParaView"
target="_blank"><a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaV">http://paraview.org/Wiki/ParaV</a><wbr>iew</a><br>
<br>
Search the list archives at: <a
moz-do-not-send="true"
class="m_-4428553163723695625moz-txt-link-freetext"
href="http://markmail.org/search/?q=" target="_blank"><a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=">http://markmail.org/search/?q=</a></a><wbr>ParaView<br>
<br>
Follow this link to
subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://public.kitware.com/mailman/listinfo/paraview"
target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/paraview</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>