| 1142 | } |
| 1143 | |
| 1144 | double GeomCurve::length(double u, double v) const |
| 1145 | { |
| 1146 | |
| 1147 | Handle(Geom_Curve) curve = Handle(Geom_Curve)::DownCast(handle()); |
| 1148 | |
| 1149 | try { |
| 1150 | GeomAdaptor_Curve adaptor(curve); |
| 1151 | return GCPnts_AbscissaPoint::Length(adaptor, u, v, Precision::Confusion()); |
| 1152 | } |
| 1153 | catch (Standard_Failure& exc) { |
| 1154 | |
| 1155 | THROWM(Base::CADKernelError, exc.GetMessageString()) |
| 1156 | } |
| 1157 | } |
| 1158 | |
| 1159 | void GeomCurve::reverse() |
| 1160 | { |