From 98e562ad4060f6f289ff9dfc36b518ad4d98f28a Mon Sep 17 00:00:00 2001 From: Val Erastov Date: Tue, 23 Jan 2018 01:45:15 -0800 Subject: [PATCH] move tpi plugin to tpi package(test program interface) --- web/app/cad/init/startApplication.js | 2 +- web/app/cad/tpi.js | 33 ---------------------------- web/app/cad/tpi/tpi.js | 33 ++++++++++++++++++++++++++++ web/app/cad/{ => tpi}/tpiPlugin.js | 0 4 files changed, 34 insertions(+), 34 deletions(-) delete mode 100644 web/app/cad/tpi.js create mode 100644 web/app/cad/tpi/tpi.js rename web/app/cad/{ => tpi}/tpiPlugin.js (100%) diff --git a/web/app/cad/init/startApplication.js b/web/app/cad/init/startApplication.js index c76ab091..3462a66f 100644 --- a/web/app/cad/init/startApplication.js +++ b/web/app/cad/init/startApplication.js @@ -15,7 +15,7 @@ import * as CraftPlugin from '../craft/craftPlugin'; import * as StoragePlugin from '../storagePlugin'; import * as ProjectPlugin from '../projectPlugin'; import * as SketcherPlugin from '../sketch/sketcherPlugin'; -import * as tpiPlugin from '../tpiPlugin'; +import * as tpiPlugin from '../tpi/tpiPlugin'; import * as PartModellerPlugin from '../part/partModellerPlugin'; diff --git a/web/app/cad/tpi.js b/web/app/cad/tpi.js deleted file mode 100644 index 94ee4671..00000000 --- a/web/app/cad/tpi.js +++ /dev/null @@ -1,33 +0,0 @@ -import * as BREPPrimitives from '../brep/brep-primitives' -import BrepBuilder, {createBoundingNurbs} from '../brep/brep-builder' -import {createPrism} from '../brep/brep-enclose' -import * as BREPBool from '../brep/operations/boolean' -import * as IO from '../brep/brep-io' -import {BREPValidator} from '../brep/brep-validator' -import {HalfEdge, Edge} from '../brep/topo/edge'; -import {Loop} from '../brep/topo/loop'; -import {Face} from '../brep/topo/face'; -import {Shell} from '../brep/topo/shell'; -import {Vertex} from '../brep/topo/vertex'; -import {Point} from '../brep/geom/point'; -import {NurbsCurve, NurbsSurface} from '../brep/geom/impl/nurbs'; -import {Plane} from '../brep/geom/impl/plane'; -import pip from "./tess/pip"; - -export default { - brep: { - builder: BrepBuilder, - createPrism, - primitives: BREPPrimitives, - bool: BREPBool, - pip, - validator: BREPValidator, - geom: { - Point, NurbsCurve, Plane, NurbsSurface, createBoundingNurbs - }, - topo: { - HalfEdge, Edge, Loop, Face, Shell, Vertex - }, - IO - } -} \ No newline at end of file diff --git a/web/app/cad/tpi/tpi.js b/web/app/cad/tpi/tpi.js new file mode 100644 index 00000000..869605c2 --- /dev/null +++ b/web/app/cad/tpi/tpi.js @@ -0,0 +1,33 @@ +import * as BREPPrimitives from '../../brep/brep-primitives' +import BrepBuilder, {createBoundingNurbs} from '../../brep/brep-builder' +import {createPrism} from '../../brep/brep-enclose' +import * as BREPBool from '../../brep/operations/boolean' +import * as IO from '../../brep/brep-io' +import {BREPValidator} from '../../brep/brep-validator' +import {HalfEdge, Edge} from '../../brep/topo/edge'; +import {Loop} from '../../brep/topo/loop'; +import {Face} from '../../brep/topo/face'; +import {Shell} from '../../brep/topo/shell'; +import {Vertex} from '../../brep/topo/vertex'; +import {Point} from '../../brep/geom/point'; +import {NurbsCurve, NurbsSurface} from '../../brep/geom/impl/nurbs'; +import {Plane} from '../../brep/geom/impl/plane'; +import pip from '../tess/pip'; + +export default { + brep: { + builder: BrepBuilder, + createPrism, + primitives: BREPPrimitives, + bool: BREPBool, + pip, + validator: BREPValidator, + geom: { + Point, NurbsCurve, Plane, NurbsSurface, createBoundingNurbs + }, + topo: { + HalfEdge, Edge, Loop, Face, Shell, Vertex + }, + IO + } +} \ No newline at end of file diff --git a/web/app/cad/tpiPlugin.js b/web/app/cad/tpi/tpiPlugin.js similarity index 100% rename from web/app/cad/tpiPlugin.js rename to web/app/cad/tpi/tpiPlugin.js