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

Method GetEdge

Common/DataModel/vtkQuad.cxx:537–555  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

535
536//------------------------------------------------------------------------------
537vtkCell* vtkQuad::GetEdge(int edgeId)
538{
539 int edgeIdPlus1 = edgeId + 1;
540
541 if (edgeIdPlus1 > 3)
542 {
543 edgeIdPlus1 = 0;
544 }
545
546 // load point id's
547 this->Line->PointIds->SetId(0, this->PointIds->GetId(edgeId));
548 this->Line->PointIds->SetId(1, this->PointIds->GetId(edgeIdPlus1));
549
550 // load coordinates
551 this->Line->Points->SetPoint(0, this->Points->GetPoint(edgeId));
552 this->Line->Points->SetPoint(1, this->Points->GetPoint(edgeIdPlus1));
553
554 return this->Line;
555}
556
557//------------------------------------------------------------------------------
558// Intersect plane; see whether point is in quadrilateral. This code

Callers 15

XdmfSubsetToVTKMethod · 0.45
get_edge_setFunction · 0.45
ExtractEdgesMethod · 0.45
IntersectWithCellImplFunction · 0.45
TestOneCellFunction · 0.45
TestGenericCellFunction · 0.45
TestGetEdgeFunction · 0.45
TestCellFunction · 0.45
TestHigherOrderCellFunction · 0.45
CompareCellEdgesFunction · 0.45
TestGetSetMethod · 0.45

Calls 4

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

Tested by 8

get_edge_setFunction · 0.36
TestOneCellFunction · 0.36
TestGenericCellFunction · 0.36
TestGetEdgeFunction · 0.36
TestCellFunction · 0.36
TestHigherOrderCellFunction · 0.36
TestGetSetMethod · 0.36
TestOECFunction · 0.36