<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello vtkusers,</div><div><br></div><div>I have VTK 7.0 and I am drawing an Arc against a plane surface. This Arc is a representation of a Geometry(e.g. Plane). I have an algorithm that by user information of Azimuth/Strike and Plunge/Dip returns a set of vtkPoints. With these points, I am building a line using vtkLineSource to represent my Plane/Arc as well as expected (attached pictures PlaneArc1 and PlaneArc2) and worked smoothly. </div><div><br></div><div>Snapshot Code:</div><div><div>vtkSmartPointer<vtkPoints> PointViewGC = MyFunction(235/*Azimuth*/, 225/*Plunge*/);</div><div><span style="white-space:pre-wrap">              </span>vtkSmartPointer<vtkLineSource> lineDataGCO =</div><div><span style="white-space:pre-wrap">                       </span>vtkSmartPointer<vtkLineSource><wbr>::New();</div><div><span style="white-space:pre-wrap">          </span>lineDataGCO->SetPoints(<wbr>PointViewGC);</div></div><div><br></div><div>However, I am trying do the same with vtk ArcSource using the same set of Points, but the result is not the correct.(Attached picture ArcSource1)</div><div>Snapshot Code:</div><div><div>vtkSmartPointer<vtkArcSource> arcSource<span style="white-space:pre-wrap">     </span> = vtkSmartPointer<vtkArcSource>:<wbr>:New();</div></div><div>arcSource->SetAngle(225);<br></div><div><div>arcSource->SetResolution(40);</div><div><span style="white-space:pre-wrap">             </span>vtkIdType numPts = PointViewGC-><wbr>GetNumberOfPoints()-1;</div><div><span style="white-space:pre-wrap">             </span>double point1[3]; PointViewGC->GetPoint(1,<wbr>point1);</div><div><span style="white-space:pre-wrap">         </span>double point2[3]; PointViewGC->GetPoint(numPts, point2);</div><div><span style="white-space:pre-wrap">              </span>arcSource->SetPoint1(point1);</div><div><span style="white-space:pre-wrap">         </span>arcSource->SetPoint1(point2);</div><div><span style="white-space:pre-wrap">         </span>arcSource->NegativeOff();</div><div><span style="white-space:pre-wrap">             </span>arcSource-><wbr>UseNormalAndAngleOn();</div></div><div><br></div><div>After some research I found out that VTK 7 doesn't released vtkEllipseArcSource classes, then I decided download from (<a href="https://github.com/Kitware/VTK" target="_blank">https://github.com/Kitware/<wbr>VTK</a>). The point is there anybody knows what's wrong in my code? If vtkArcSource could handle itself my goals to draw this geometry? And/or if vtkEllipseArcSource could solve my problem to justify I do again a compilation of VTK just to integrate this class?</div><div><br></div><div>Many thanks for any help.</div><div><br></div><div>Regards,</div><div><br></div><div>Luis.</div></div>
</div><br></div>