MCPcopy Create free account
hub / github.com/Kitware/VTK / GetEdge

Method GetEdge

Common/DataModel/vtkPixel.cxx:370–385  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

368
369//------------------------------------------------------------------------------
370vtkCell* vtkPixel::GetEdge(int edgeId)
371{
372 int* verts;
373
374 verts = edges[edgeId];
375
376 // load point id's
377 this->Line->PointIds->SetId(0, this->PointIds->GetId(verts[0]));
378 this->Line->PointIds->SetId(1, this->PointIds->GetId(verts[1]));
379
380 // load coordinates
381 this->Line->Points->SetPoint(0, this->Points->GetPoint(verts[0]));
382 this->Line->Points->SetPoint(1, this->Points->GetPoint(verts[1]));
383
384 return this->Line;
385}
386
387//------------------------------------------------------------------------------
388//

Callers 1

IntersectWithLineMethod · 0.95

Calls 4

SetIdMethod · 0.45
GetIdMethod · 0.45
SetPointMethod · 0.45
GetPointMethod · 0.45

Tested by

no test coverage detected