mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-08 01:13:27 +01:00
clean up / move code around
This commit is contained in:
parent
0da15743f9
commit
1cce9abacc
6 changed files with 8 additions and 22 deletions
|
|
@ -4,7 +4,6 @@ import {HashTable} from '../utils/hashmap'
|
|||
import {Graph} from '../math/graph'
|
||||
import * as math from '../math/math'
|
||||
import {Matrix3, AXIS, ORIGIN} from '../math/l3space'
|
||||
import Counters from './counters'
|
||||
import {MeshSceneSolid} from './scene/wrappers/meshSceneObject'
|
||||
|
||||
export const FACE_COLOR = 0xB0C4DE;
|
||||
|
|
@ -548,3 +547,7 @@ export function arrFlatten1L(arr) {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
const Counters = {
|
||||
shared : 0
|
||||
};
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
|
||||
const Counters = {
|
||||
solid : 0,
|
||||
shared : 0
|
||||
};
|
||||
|
||||
export default Counters;
|
||||
|
|
@ -1,9 +1,6 @@
|
|||
import * as tk from '../../../../ui/toolkit.js'
|
||||
import * as workbench from '../workbench'
|
||||
import * as cad_utils from '../../../cad-utils'
|
||||
import Vector from 'math/vector';
|
||||
import {Wizard} from './wizard-commons'
|
||||
import {LoadSTLFromURL} from '../../../io'
|
||||
import {LoadSTLFromURL} from '../../../stl/io'
|
||||
|
||||
export function ImportWizard(viewer, initParams) {
|
||||
Wizard.call(this, viewer, initParams);
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
import Vector from 'math/vector';
|
||||
import * as cad_utils from '../../cad-utils'
|
||||
import * as math from '../../../math/math'
|
||||
import {LUT} from '../../../math/bezier-cubic'
|
||||
import {Matrix3, AXIS, ORIGIN} from '../../../math/l3space'
|
||||
import {HashTable} from '../../../utils/hashmap'
|
||||
import {Mesh} from '../../mesh'
|
||||
import {LoadSTLFromURL} from '../../io'
|
||||
import revolve from './revolve'
|
||||
import {Triangulate} from '../../tess/triangulation'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
import {HashTable} from '../../../utils/hashmap'
|
||||
import Vector from 'math/vector';
|
||||
import Counters from '../../counters'
|
||||
import {findOutline, segmentsToPaths, reconstructSketchBounds} from '../../craft/mesh/workbench'
|
||||
import {Matrix3, AXIS} from '../../../math/l3space'
|
||||
import {arrFlatten1L, isCurveClass} from '../../cad-utils'
|
||||
import DPR from 'dpr'
|
||||
import {SceneSolid, SceneFace} from './sceneObject'
|
||||
import {findOutline, reconstructSketchBounds, segmentsToPaths} from '../../craft/mesh/workbench'
|
||||
import {isCurveClass} from '../../cad-utils'
|
||||
import {SceneFace, SceneSolid} from './sceneObject'
|
||||
|
||||
export class MeshSceneSolid extends SceneSolid {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue