API Reference > OdIfc Namespace > Classes > OdIfcModelerGeometry Class > OdIfcModelerGeometry Methods > OdIfcModelerGeometry::revolve Method
OdIfcModelerGeometry::revolve Method
Syntax
C++
virtual OdResult revolve(OdIfcProfileDefPtr profile, const OdGeVector3d& axisOfRevolution, const OdGePoint3d& axisPosition, double startAng, double endAng) = 0;
Parameters 
Description 
OdIfcProfileDefPtr profile 
[in] A smart pointer to the base profile for the extrusion.  
const OdGeVector3d& axisOfRevolution 
[in] A vector object that represents the axis of the revolution that is used by the base profile for revolution body creation.  
const OdGePoint3d& axisPosition 
[in] A point that defines the position of the revolution axis.  
double startAng 
[in] A starting angle value of the revolution.  
double endAng 
[in] An ending angle of the revolution. 

Returns the operation result code:

  • eOk if the revolution was created successfully.
  • eNullEntityPointer if the smart pointer to the base profile is NULL.
  • eGeneralModelingFailure in other cases.

Creates a revolution body and stores it in the geometry modeler object. 

 

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.