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

Method GetGeometryOrder

Testing/GenericBridge/vtkBridgeCell.cxx:148–161  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Interpolation order of the geometry. \post positive_result: result>=0

Source from the content-addressed store, hash-verified

146// Interpolation order of the geometry.
147// \post positive_result: result>=0
148int vtkBridgeCell::GetGeometryOrder()
149{
150 int result;
151 if (this->Cell->IsLinear())
152 {
153 result = 1;
154 }
155 else
156 {
157 result = 2; // GetOrder() is missing in vtkCell...
158 }
159 assert("post: positive_result" && result >= 0);
160 return result;
161}
162
163//------------------------------------------------------------------------------
164// Description:

Callers 2

GetAttributeOrderMethod · 0.95
IsGeometryLinearMethod · 0.80

Calls 2

assertFunction · 0.50
IsLinearMethod · 0.45

Tested by

no test coverage detected