<div dir="ltr">Try yanking this line<div><br></div><div><br></div><div>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span> </span>edges_mapper-></span><wbr style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">SetResolveCoincidentTopologyPo</span><wbr style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">lygonOffsetParameters(1,</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">1);</span>
<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 15, 2018 at 2:09 PM, ZACK <span dir="ltr"><<a href="mailto:chihebz@hotmail.com" target="_blank">chihebz@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ken Martin,<br>
<br>
Thank you for your advice. I did look at new vtk example and I did not see<br>
that I am doing something wrong! My project is still working fine under<br>
vtk5.4 but not with the latest vtk version. Please take a look at the code<br>
below and let me know if you notice something wrong. Please note that that I<br>
have two actors, if I add only one actor to the viewprop it works fine but<br>
not both at the same time.!!<br>
<br>
Here's the code that is working on previous 5.0 vtk version<br>
<br>
//rendering<br>
m_prenderer = vtkopenglrenderer::New();<br>
m_prenWin = vtkWin32OpenGLRenderWindow::<wbr>New();<br>
<br>
//I use append filter class to add all unstructured grids data<br>
m_pUnstructuredGridModel = vtkAppendFiter::New();<br>
<br>
//...addding data<br>
<br>
vtkSmartPointer<<wbr>vtkGeometryFilter> extract =<br>
vtkSmartPointer<<wbr>vtkGeometryFilter>::New();<br>
<br>
extract->SetInputConnection(m_<wbr>pUnstructuredGridModel-><wbr>GetOutputPort());<br>
extract->Modified();<br>
<br>
//creating mapper<br>
InitializePolyDataMapper(m_<wbr>pModelPolyDataMapper);<br>
<br>
m_pModelPolyDataMapper-><wbr>SetInputConnection(extract-><wbr>GetOutputPort());<br>
PreparePolyDataMapper(m_<wbr>pModelPolyDataMapper, pColours,<br>
m_CurrentMinValue,<br>
m_CurrentMaxValue);<br>
<br>
//creating actor<br>
m_pCurrentFringeActor = vtkActor::New();<br>
m_pCurrentFringeActor-><wbr>SetMapper(m_<wbr>pModelPolyDataMapper);<br>
m_pCurrentFringeActor-><wbr>SetDragable(true);<br>
m_pCurrentFringeActor-><wbr>VisibilityOn();<br>
m_prenderer->AddViewProp(m_<wbr>pCurrentFringeActor);// m_prenderer is<br>
vtkopenglrenderer<br>
<br>
*The piece of code above does render fine, but when I try to add the code<br>
below for wireframe the render windows becomes empty *<br>
<br>
vtkSmartPointer<<wbr>vtkFeatureEdges> edges_extractor =<br>
vtkSmartPointer<<wbr>vtkFeatureEdges>::New();<br>
edges_extractor-><wbr>SetInputConnection(extract-><wbr>GetOutputPort());<br>
edges_extractor->ColoringOff()<wbr>;<br>
edges_extractor-><wbr>BoundaryEdgesOn();<br>
edges_extractor-><wbr>ManifoldEdgesOn();<br>
edges_extractor-><wbr>NonManifoldEdgesOn();<br>
edges_extractor-><wbr>FeatureEdgesOn();<br>
edges_extractor->Modified();<br>
<br>
vtkSmartPointer<<wbr>vtkPolyDataMapper> edges_mapper =<br>
vtkSmartPointer<<wbr>vtkPolyDataMapper>::New();<br>
<br>
edges_mapper-><wbr>SetInputConnection(edges_<wbr>extractor->GetOutputPort());<br>
edges_mapper-><wbr>SetResolveCoincidentTopologyPo<wbr>lygonOffsetParameters(1,<br>
1);<br>
edges_mapper-><wbr>SetResolveCoincidentTopologyTo<wbr>PolygonOffset();<br>
edges_mapper-><wbr>ScalarVisibilityOff(); // coloring edges<br>
<br>
edges_mapper->Modified();<br>
<br>
vtkActor* edges_actor = vtkActor::New();<br>
edges_actor->SetMapper(edges_<wbr>mapper);<br>
edges_actor->GetProperty()-><wbr>SetDiffuseColor(0, 0, 0);<br>
edges_actor->GetProperty()-><wbr>SetLineWidth(m_iEdgeLineWidth)<wbr>;<br>
edges_actor->Modified();<br>
edges_actor->VisibilityOn();<br>
<br>
//rendering<br>
m_prenderer->AddViewProp(<wbr>edges_actor);<br>
m_prenWin->Render<br>
<br>
*Note: If I render the wireframe actor (edges_actor) by itself it does work<br>
fine *<br>
<br>
Thanks<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-Users-f1224199.html</a><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="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Ken Martin PhD<div>Distinguished Engineer<br><span style="font-size:12.8px">Kitware Inc.</span><br></div><div>28 Corporate Drive<br>Clifton Park NY 12065<br><div><br></div><div><span style="font-size:10pt;font-family:Tahoma,sans-serif">This communication,
including all attachments, contains confidential and legally privileged
information, and it is intended only for the use of the addressee. Access to this email by anyone else is
unauthorized. If you are not the intended recipient, any disclosure, copying,
distribution or any action taken in reliance on it is prohibited and may be
unlawful. If you received this communication in error please notify us
immediately and destroy the original message.
Thank you.</span></div></div></div></div></div>
</div>