|
|
|
@ -90,8 +90,8 @@ export class SnapServices
|
|
|
|
|
this.InitDynPrompt();
|
|
|
|
|
this.InitCrossCursor();
|
|
|
|
|
this.InitSquareCursor();
|
|
|
|
|
this.InitBiasCrossCursor();
|
|
|
|
|
this.InitBiasOutline();
|
|
|
|
|
this.InitObliqueCrossCursor();
|
|
|
|
|
this.InitObliqueOutline();
|
|
|
|
|
this.InitSupportExtLine();
|
|
|
|
|
|
|
|
|
|
if (prompt.BasePoint)
|
|
|
|
@ -167,8 +167,8 @@ export class SnapServices
|
|
|
|
|
{
|
|
|
|
|
this.UpdateSquareCursor();
|
|
|
|
|
this.UpdateCrossCursor();
|
|
|
|
|
this.UpdateBiasCrossCursor();
|
|
|
|
|
this.UpdateBiasOutline();
|
|
|
|
|
this.UpdateObliqueCrossCursor();
|
|
|
|
|
this.UpdateObliqueOutline();
|
|
|
|
|
this.UpdateDynPrompt();
|
|
|
|
|
this.UpdateSupportExtLine();
|
|
|
|
|
|
|
|
|
@ -788,7 +788,7 @@ export class SnapServices
|
|
|
|
|
pts = PointShapeUtils.PerPts(this.SnapSize);
|
|
|
|
|
break;
|
|
|
|
|
case ObjectSnapMode.Int:
|
|
|
|
|
pts = PointShapeUtils.BiasCrossLinePts(this.SnapSize);
|
|
|
|
|
pts = PointShapeUtils.ObliqueCrossLinePts(this.SnapSize);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
@ -801,34 +801,34 @@ export class SnapServices
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private m_BiasCrossCursor: Line;
|
|
|
|
|
private m_ObliqueCrossCursor: Line;
|
|
|
|
|
//×光标,用于捕捉轴线
|
|
|
|
|
private InitBiasCrossCursor()
|
|
|
|
|
private InitObliqueCrossCursor()
|
|
|
|
|
{
|
|
|
|
|
if (!this.m_BiasCrossCursor)
|
|
|
|
|
if (!this.m_ObliqueCrossCursor)
|
|
|
|
|
{
|
|
|
|
|
this.m_BiasCrossCursor = app.Viewer.PreViewer.Draw(
|
|
|
|
|
DrawMode.BaisCross,
|
|
|
|
|
this.m_ObliqueCrossCursor = app.Viewer.PreViewer.Draw(
|
|
|
|
|
DrawMode.ObliqueCross,
|
|
|
|
|
8,
|
|
|
|
|
new Vector3(),
|
|
|
|
|
ColorMaterial.GetLineMaterial(7)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private UpdateBiasCrossCursor()
|
|
|
|
|
private UpdateObliqueCrossCursor()
|
|
|
|
|
{
|
|
|
|
|
this.UpdateObjectPosition(
|
|
|
|
|
this.m_BiasCrossCursor,
|
|
|
|
|
this.m_ObliqueCrossCursor,
|
|
|
|
|
this.m_SupportExtLinePts.length > 0
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private m_BiasOutline: Line;
|
|
|
|
|
private m_ObliqueOutline: Line;
|
|
|
|
|
//初始化X光标外包围框(虚线),用户显示光标交叉
|
|
|
|
|
private InitBiasOutline()
|
|
|
|
|
private InitObliqueOutline()
|
|
|
|
|
{
|
|
|
|
|
if (!this.m_BiasOutline)
|
|
|
|
|
this.m_BiasOutline = app.Viewer.PreViewer.Draw(
|
|
|
|
|
if (!this.m_ObliqueOutline)
|
|
|
|
|
this.m_ObliqueOutline = app.Viewer.PreViewer.Draw(
|
|
|
|
|
DrawMode.Square,
|
|
|
|
|
this.SnapSize,
|
|
|
|
|
new Vector3(),
|
|
|
|
@ -836,10 +836,10 @@ export class SnapServices
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private UpdateBiasOutline()
|
|
|
|
|
private UpdateObliqueOutline()
|
|
|
|
|
{
|
|
|
|
|
this.UpdateObjectPosition(
|
|
|
|
|
this.m_BiasOutline,
|
|
|
|
|
this.m_ObliqueOutline,
|
|
|
|
|
this.m_SupportExtLinePts.length > 2
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|