多段线获取点bug

pull/68/head
Zoe 6 years ago
parent 8c76bb8423
commit 2a273fce5f

@ -267,7 +267,7 @@ export class Polyline extends Curve
*/
GetPointAtParam(param: number): Vector3
{
if (param === Math.floor(param))
if (param === Math.floor(param) && this.ParamOnCurve(param))
return Vec2DTo3D(this.GetPoint2dAt(FixIndex(param, this.NumberOfVertices))).applyMatrix4(this.OCS);
let cu: Curve = this.GetCurveAtParam(param);
if (cu)

Loading…
Cancel
Save