|
|
@ -25,7 +25,7 @@ import { PromptStatus } from "../../../Editor/PromptResult";
|
|
|
|
import { SelectBox, SelectType } from "../../../Editor/SelectBox";
|
|
|
|
import { SelectBox, SelectType } from "../../../Editor/SelectBox";
|
|
|
|
import { CreateContours } from "../../../Geometry/CreateContour2";
|
|
|
|
import { CreateContours } from "../../../Geometry/CreateContour2";
|
|
|
|
import { ContourTreeNode } from "../../../Geometry/ExtrudeMeshGeomBuilder/ExtrudeEdgeGeometry2";
|
|
|
|
import { ContourTreeNode } from "../../../Geometry/ExtrudeMeshGeomBuilder/ExtrudeEdgeGeometry2";
|
|
|
|
import { AsVector2, MoveMatrix, equaln, isParallelTo } from "../../../Geometry/GeUtils";
|
|
|
|
import { AsVector2, equaln, isParallelTo, MoveMatrix } from "../../../Geometry/GeUtils";
|
|
|
|
import { BoardConfigOption, BoardProcessOption, FaceDirection, IGrooveOption, IUiOption } from '../../Store/BoardInterface';
|
|
|
|
import { BoardConfigOption, BoardProcessOption, FaceDirection, IGrooveOption, IUiOption } from '../../Store/BoardInterface';
|
|
|
|
import { RightPanelStore } from "../../Store/RightPanelStore/RightPanelStore";
|
|
|
|
import { RightPanelStore } from "../../Store/RightPanelStore/RightPanelStore";
|
|
|
|
import { RightTabId } from "../RightPanel/RightPanel";
|
|
|
|
import { RightTabId } from "../RightPanel/RightPanel";
|
|
|
@ -334,7 +334,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
let cu = JigUtils.Draw(br.ContourCurve.Clone().ApplyMatrix(br.OCS));
|
|
|
|
let cu = JigUtils.Draw(br.ContourCurve.Clone().ApplyMatrix(br.OCS));
|
|
|
|
let moveCus: Curve[] = [cu];
|
|
|
|
let moveCus: Curve[] = [cu];
|
|
|
|
|
|
|
|
|
|
|
|
let store = RightPanelStore.GetInstance() as RightPanelStore;
|
|
|
|
let store = RightPanelStore.GetInstance();
|
|
|
|
|
|
|
|
|
|
|
|
//载入配置,设置配置
|
|
|
|
//载入配置,设置配置
|
|
|
|
let config = new DialogUserConfig(store.modeling2Store, BoardModalType.ZX2);
|
|
|
|
let config = new DialogUserConfig(store.modeling2Store, BoardModalType.ZX2);
|
|
|
@ -394,7 +394,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
TempEditor.Start();
|
|
|
|
TempEditor.Start();
|
|
|
|
app.Database.hm.lockIndex++;//禁止初始化动作被撤销
|
|
|
|
app.Database.hm.lockIndex++;//禁止初始化动作被撤销
|
|
|
|
|
|
|
|
|
|
|
|
const store = RightPanelStore.GetInstance() as RightPanelStore;
|
|
|
|
const store = RightPanelStore.GetInstance();
|
|
|
|
|
|
|
|
|
|
|
|
//载入配置,设置配置
|
|
|
|
//载入配置,设置配置
|
|
|
|
let config = new DialogUserConfig(store.modeling3Store, BoardModalType.ZX3);
|
|
|
|
let config = new DialogUserConfig(store.modeling3Store, BoardModalType.ZX3);
|
|
|
@ -500,7 +500,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
box.expandByVector(new Vector3(1, 1, 1));
|
|
|
|
box.expandByVector(new Vector3(1, 1, 1));
|
|
|
|
let selectBox = new SelectBox(app.Viewer, AsVector2(box.min), AsVector2(box.max), SelectType.C);
|
|
|
|
let selectBox = new SelectBox(app.Viewer, AsVector2(box.min), AsVector2(box.max), SelectType.C);
|
|
|
|
|
|
|
|
|
|
|
|
const rightStore = RightPanelStore.GetInstance() as RightPanelStore;
|
|
|
|
const rightStore = RightPanelStore.GetInstance();
|
|
|
|
|
|
|
|
|
|
|
|
let contourMap = new Map<number, Contour[]>();
|
|
|
|
let contourMap = new Map<number, Contour[]>();
|
|
|
|
|
|
|
|
|
|
|
@ -589,7 +589,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
app.Viewer.WorldToScreen(box.max);
|
|
|
|
app.Viewer.WorldToScreen(box.max);
|
|
|
|
let selectBox = new SelectBox(app.Viewer, AsVector2(box.min), AsVector2(box.max), SelectType.C);
|
|
|
|
let selectBox = new SelectBox(app.Viewer, AsVector2(box.min), AsVector2(box.max), SelectType.C);
|
|
|
|
|
|
|
|
|
|
|
|
const rightStore = RightPanelStore.GetInstance() as RightPanelStore;
|
|
|
|
const rightStore = RightPanelStore.GetInstance();
|
|
|
|
|
|
|
|
|
|
|
|
let pathMap = new Map<number, Polyline[]>();
|
|
|
|
let pathMap = new Map<number, Polyline[]>();
|
|
|
|
|
|
|
|
|
|
|
@ -648,7 +648,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
if (contourMap.size > 0)
|
|
|
|
if (contourMap.size > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let br = this.props.br;
|
|
|
|
let br = this.props.br;
|
|
|
|
const rightStore = RightPanelStore.GetInstance() as RightPanelStore;
|
|
|
|
const rightStore = RightPanelStore.GetInstance();
|
|
|
|
|
|
|
|
|
|
|
|
for (let [color, contours] of contourMap)
|
|
|
|
for (let [color, contours] of contourMap)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -700,7 +700,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
if (contourMap.size > 0)
|
|
|
|
if (contourMap.size > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let br = this.props.br;
|
|
|
|
let br = this.props.br;
|
|
|
|
const rightStore = RightPanelStore.GetInstance() as RightPanelStore;
|
|
|
|
const rightStore = RightPanelStore.GetInstance();
|
|
|
|
br.ClearModeling2DList();
|
|
|
|
br.ClearModeling2DList();
|
|
|
|
let modelings: I2DModeling[] = [];
|
|
|
|
let modelings: I2DModeling[] = [];
|
|
|
|
for (let [color, contours] of contourMap)
|
|
|
|
for (let [color, contours] of contourMap)
|
|
|
@ -747,7 +747,7 @@ export class BoardConfigModal extends React.Component<BoardConfigProps, {}>{
|
|
|
|
|
|
|
|
|
|
|
|
await app.Editor.ModalManage.EndExecingCmd();
|
|
|
|
await app.Editor.ModalManage.EndExecingCmd();
|
|
|
|
|
|
|
|
|
|
|
|
const store = (RightPanelStore.GetInstance() as RightPanelStore).modeling3Store;
|
|
|
|
const store = RightPanelStore.GetInstance().modeling3Store;
|
|
|
|
|
|
|
|
|
|
|
|
let curvesMap = new Map<number, (Line | Arc)[]>();
|
|
|
|
let curvesMap = new Map<number, (Line | Arc)[]>();
|
|
|
|
for (let o of app.Viewer.Scene.children)
|
|
|
|
for (let o of app.Viewer.Scene.children)
|
|
|
|