|
|
|
@ -16,14 +16,14 @@ export class SweepSolid extends Solid3D
|
|
|
|
|
{
|
|
|
|
|
m_ShapeManager = new ShapeManager();
|
|
|
|
|
m_PathCurve: Curve;
|
|
|
|
|
constructor(cus?: Curve[], pathCurve?: Curve)
|
|
|
|
|
constructor(shapeCus?: Curve[], pathCurve?: Curve)
|
|
|
|
|
{
|
|
|
|
|
super();
|
|
|
|
|
//TODO:合并分支后优化,曲线数组转形状类
|
|
|
|
|
if (cus)
|
|
|
|
|
if (shapeCus)
|
|
|
|
|
{
|
|
|
|
|
cus.forEach(c => c.ApplyMatrix(c.OCSInv))
|
|
|
|
|
let cons = Contour.GetAllContour(cus);
|
|
|
|
|
shapeCus.forEach(c => c.ApplyMatrix(c.OCSInv))
|
|
|
|
|
let cons = Contour.GetAllContour(shapeCus);
|
|
|
|
|
this.m_ShapeManager.AppendShapeList(Shape.pairHoleAndOutline(cons));
|
|
|
|
|
}
|
|
|
|
|
this.m_PathCurve = pathCurve || new Line();
|
|
|
|
@ -46,11 +46,11 @@ export class SweepSolid extends Solid3D
|
|
|
|
|
}
|
|
|
|
|
GetSnapPoints()
|
|
|
|
|
{
|
|
|
|
|
return [...this.m_PathCurve.GetSnapPoints()];
|
|
|
|
|
return this.m_PathCurve.GetSnapPoints();
|
|
|
|
|
}
|
|
|
|
|
GetStretchPoints()
|
|
|
|
|
{
|
|
|
|
|
return [...this.m_PathCurve.GetSnapPoints()];
|
|
|
|
|
return this.m_PathCurve.GetSnapPoints();
|
|
|
|
|
}
|
|
|
|
|
MoveSnapPoints(indexList: number[], vec: Vector3)
|
|
|
|
|
{
|
|
|
|
|