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

Method IsConvex

Common/DataModel/vtkPolygon.cxx:88–92  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

86
87//------------------------------------------------------------------------------
88bool vtkPolygon::IsConvex()
89{
90 return vtkPolygon::IsConvex(
91 this->GetPoints(), this->GetNumberOfPoints(), this->GetPointIds()->GetPointer(0));
92}
93
94constexpr int VTK_POLYGON_FAILURE = -1;
95constexpr int VTK_POLYGON_OUTSIDE = 0;

Callers 3

IsConvexFunction · 0.45
TestPolygonFunction · 0.45
ConvexMethod · 0.45

Calls 10

IsConvexFunction · 0.85
NormFunction · 0.70
DotFunction · 0.70
CrossFunction · 0.50
GetPointsMethod · 0.45
GetNumberOfPointsMethod · 0.45
GetPointerMethod · 0.45
GetPointIdsMethod · 0.45
GetPointMethod · 0.45
GetNumberOfTuplesMethod · 0.45

Tested by 2

IsConvexFunction · 0.36
TestPolygonFunction · 0.36