API Reference > OdGe Classes > OdGeLineSeg3d Class > OdGeLineSeg3d Methods > set Method > OdGeLineSeg3d::set Method (OdGeCurve3d&, OdGePoint3d&, double&, bool&)
OdGeLineSeg3d::set Method (OdGeCurve3d&, OdGePoint3d&, double&, bool&)
Syntax
C++
OdGeLineSeg3d& set(const OdGeCurve3d& curve, const OdGePoint3d& point, double& param, bool& success);
Parameters 
Description 
const OdGeCurve3d& curve 
[in] A curve to which a line segment will be tangent.  
const OdGePoint3d& point 
[in] A 3D point through which a line segment passes.  
double& param 
[in] A point on curve where line segment is tangent to curve.  
bool& success 
[out] Indicates that tangent line was computed successfully. 

Sets the parameters for this line segment according to the arguments, and returns a reference to this line segment. 

 

The point must lie on the plane of the curve and the curve must be planar. If success returns false, the line segment does not change.

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