CurveCreateCatenaryCurveThroughPoint Method |
Generate a catenary curve through a point
Namespace:
Rhino.Geometry
Assembly:
RhinoCommon (in RhinoCommon.dll)
Syntaxpublic static Curve CreateCatenaryCurveThroughPoint(
Point3d catenary_start,
Point3d catenary_end,
Vector3d axis_dir,
Point3d through_point,
bool bSmooth,
int point_count,
out Point3d apex_out,
out double parameter_out,
out double length_out,
out double max_deviation_out
)
Public Shared Function CreateCatenaryCurveThroughPoint (
catenary_start As Point3d,
catenary_end As Point3d,
axis_dir As Vector3d,
through_point As Point3d,
bSmooth As Boolean,
point_count As Integer,
<OutAttribute> ByRef apex_out As Point3d,
<OutAttribute> ByRef parameter_out As Double,
<OutAttribute> ByRef length_out As Double,
<OutAttribute> ByRef max_deviation_out As Double
) As Curve
Parameters
- catenary_start
- Type: Rhino.GeometryPoint3d
catenary start point - catenary_end
- Type: Rhino.GeometryPoint3d
catenary end point - axis_dir
- Type: Rhino.GeometryVector3d
catenary axis/gravity direction - through_point
- Type: Rhino.GeometryPoint3d
point on the catenary between catenary_start and catenary_end - bSmooth
- Type: SystemBoolean
if false generates polyline output - point_count
- Type: SystemInt32
number of points in the output curve - apex_out
- Type: Rhino.GeometryPoint3d
apex point of the output catenary curve - parameter_out
- Type: SystemDouble
output catenary parameter "a" in the formula y = a * cosh(x/a) - length_out
- Type: SystemDouble
output catenary length - max_deviation_out
- Type: SystemDouble
sampled max deviation between the output curve and the analytic catenary
Return Value
Type:
CurveA catenary Curve or null if unsuccessful
See Also