优化:圆形拉伸实体的端点捕捉

pull/2894/head
ChenX 3 months ago
parent 0ffd999421
commit 92033820c3

@ -17,6 +17,7 @@ import { AutoRecord } from "../AutoRecord";
import { Factory } from "../CADFactory";
import { CADFiler } from "../CADFiler";
import { Contour } from "../Contour";
import { Circle } from "../Entity/Circle";
import { DragPointType } from "../Entity/DragPointType";
import { ExtrudeContourCurve, ExtrudeSolid } from "../Entity/Extrude";
import { GenUVForWorld } from "../Entity/GenUVForWorld";
@ -161,6 +162,8 @@ export class ExtrudeHole extends Hole
switch (snapMode)
{
case ObjectSnapMode.End:
if (this._contourCurve instanceof Circle)
return this.GetGripPoints();
return this.GetStretchPoints();
case ObjectSnapMode.Mid:
case ObjectSnapMode.Cen:

@ -821,6 +821,8 @@ export class ExtrudeSolid extends Entity
switch (snapMode)
{
case ObjectSnapMode.End:
if (this.contourCurve instanceof Circle)
return this.GetGripPoints();
return this.GetStretchPoints();
case ObjectSnapMode.Mid:
case ObjectSnapMode.Cen:

Loading…
Cancel
Save