API Reference > OdGe Classes > OdGeOffsetCurve3d Class > OdGeOffsetCurve3d Constructor > OdGeOffsetCurve3d::OdGeOffsetCurve3d Constructor (OdGeCurve3d&, OdGeVector3d&, double, bool)
OdGeOffsetCurve3d::OdGeOffsetCurve3d Constructor (OdGeCurve3d&, OdGeVector3d&, double, bool)
Syntax
C++
OdGeOffsetCurve3d(const OdGeCurve3d& baseCurve, const OdGeVector3d& planeNormal, double offsetDistance, bool makeCopy = false);
Parameters 
Description 
const OdGeCurve3d& baseCurve 
[in] Any 3D curve to be set as the base curve.  
const OdGeVector3d& planeNormal 
[in] A 3D vector to be set as the normal to the plane of the base curve.  
double offsetDistance 
[in] Offset distance.  
bool makeCopy = false 
[in] If true, makes a copy of the base curve specified by the baseCurve parameter. 

Sets the base curve pointer to baseCurve, the plain normal pointer to planeNormal, and the offset distance to offsetDistance. 

 

If makeCopy is true, the constructor makes a copy of the 3D curve entity specified by the baseCurve parameter. The OdGeOffsetCurve3d object that is being created becomes the owner of the newly made copy of the given 3D curve. The direction of the offset is determined by the sign of the offsetDistance parameter and by the direction of planeNormal. The base curve must be planar and planeNormal must be perpendicular to the plane of the base curve. 

There are two exceptions to this rule: 

  • If the offset distance is 0, then planeNormal may be any vector,
including the zero vector (it will not be used if the offset distance is 0).
  • If the base curve is linear, then planeNormal must be perpendicular to the line of the curve.
 

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