CadRPlanAddCurve
Creates a new road alignment (plan) — curve and returns its handle.
std::int32_t CadRPlanAddCurve (
YuHandle hRPlan,
double Dist,
double RotAngle,
std::int32_t Turn,
double Rad,
double Len1,
double Len2
);
Parameters
- hRPlan (YuHandle)
- Handle to the road alignment, as returned by
CadAddRPlan. - Dist (double)
- Chainage of the curve's vertex (PI) along the alignment.
- RotAngle (double)
- Deflection angle of the curve, in radians.
- Turn (std::int32_t)
- Turn direction:
+1= left (CCW),-1= right (CW). - Rad (double)
- Radius in world units.
- Len1 (double)
- Entry spiral (clothoid) length; 0 = circular curve only.
- Len2 (double)
- Exit spiral (clothoid) length; 0 = circular curve only.
Return Value
The handle of the newly created road alignment (plan), or 0 on failure.