API Reference > FacetModeler Namespace > Classes > Cylinder Class > Cylinder Methods > Cylinder::compare Method
Cylinder::compare Method
Syntax
C++
int compare(const Surface* pOther, double eps) const;
Parameters 
Description 
const Surface* pOther 
[in] Other surface to compare with.  
double eps 
[in] Comparison tolerance. 
  • 0 - if the surfaces are equal,
  • 1 - if a parameter of this surface is greater than the corresponding parameter of another surface,
  • -1 - otherwise.

Compares surfaces with the specified tolerance. 

 

The main purpose of the method is to sort surfaces.

Copyright © 2002-2020. Open Design Alliance. All rights reserved.