mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 18:02:50 +01:00
disable debug mode / tests
This commit is contained in:
parent
766b37ed44
commit
eeb597c8ff
2 changed files with 5 additions and 5 deletions
|
|
@ -14,8 +14,8 @@ export const TOLERANCE_SQ = TOLERANCE * TOLERANCE;
|
|||
export const TOLERANCE_HALF = TOLERANCE * 0.5;
|
||||
|
||||
const DEBUG = {
|
||||
OPERANDS_MODE: true,
|
||||
LOOP_DETECTION: true,
|
||||
OPERANDS_MODE: false,
|
||||
LOOP_DETECTION: false,
|
||||
FACE_FACE_INTERSECTION: false,
|
||||
FACE_EDGE_INTERSECTION: false,
|
||||
SEWING: false,
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export default {
|
|||
cut(app, '0:2', 500);
|
||||
setSketch(win, app, '0:3', {"layers":[{"name":"sketch","data":[{"id":34,"_class":"TCAD.TWO.Segment","points":[[28,[29,-250],[30,250]],[31,[32,-169.15430109914888],[33,24.438723388262304]]],"children":[34]},{"id":41,"_class":"TCAD.TWO.Segment","points":[[35,[36,-169.15430109914888],[37,24.438723388262304]],[38,[39,-44.56473088447832],[40,170.1126824084925]]],"children":[41]},{"id":48,"_class":"TCAD.TWO.Segment","points":[[42,[43,-44.56473088447832],[44,170.1126824084925]],[45,[46,-250],[47,250]]],"children":[48]}]}]});
|
||||
cut(app, '0:3', 500);
|
||||
assertScene(app, env, {"format":"LOOPS","vertices":[[-250,-250,-250],[-250,-250,-89.92411780734957],[-250,-250,117.59771265441589],[-250,-250,250],[-250,24.438723388262304,-169.15430109914888],[-250,117.07709154482764,-89.9241178073496],[-250,187.75152195374028,-89.9241178073496],[-250,250,-250],[-250,250,-89.92411780734957],[-250,250,117.59771265441589],[-250,250,250],[-222.26125142532885,24.438723388262304,-169.15430109914888],[-208.9483140098693,-250,-207.18004219340503],[-208.9483140098693,130.53137670117144,-207.18004219340503],[-208.9483140098693,233.34866460234332,-207.18004219340503],[-208.9483140098693,250,-207.18004219340503],[-208.15895732561484,24.438723388262304,-169.15430109914888],[-205.5726669021471,170.1126824084925,-44.56473088447832],[-199.9768703670335,-250,225.00201188826748],[-199.9768703670335,250,225.00201188826748],[250,-250,-250],[250,-250,250],[250,24.438723388262304,-169.15430109914888],[250,170.1126824084925,-44.56473088447832],[250,250,-250],[250,250,250]],"faces":[[[3,2,18,12,1,0,20,21]],[[23,24,25,21,20,24,22]],[[15,19,9,10,25,24,7,8]],[[0,1,5,4,7]],[[8,7,6]],[[2,3,10,9]],[[25,10,3,21]],[[20,0,7,24]],[[14,17,16,13,12,18,19,15]],[[6,14,15,8]],[[11,5,1,12,13]],[[18,2,9,19]],[[11,13,16,22,24,7,4]],[[5,11,4]],[[16,17,23,22]],[[14,6,7,24,23,17]]]});
|
||||
assertScene(app, env, {"format":"LOOPS","vertices":[[-250,-250,-250],[-250,-250,-89.92411780734957],[-250,-250,117.59771265441589],[-250,-250,250],[-250,24.438723388262304,-169.15430109914888],[-250,117.07709154482764,-89.9241178073496],[-250,187.75152195374028,-89.9241178073496],[-250,250,-250],[-250,250,-89.92411780734957],[-250,250,117.59771265441589],[-250,250,250],[-222.26125142532885,24.438723388262304,-169.15430109914888],[-208.9483140098693,-250,-207.18004219340503],[-208.9483140098693,130.53137670117144,-207.18004219340503],[-208.9483140098693,233.34866460234332,-207.18004219340503],[-208.9483140098693,250,-207.18004219340503],[-208.15895732561484,24.438723388262304,-169.15430109914888],[-205.5726669021471,170.1126824084925,-44.56473088447832],[-199.9768703670335,-250,225.00201188826748],[-199.9768703670335,250,225.00201188826748],[250,-250,-250],[250,-250,250],[250,24.438723388262304,-169.15430109914888],[250,170.1126824084925,-44.56473088447832],[250,250,-250],[250,250,250]],"faces":[[[3,2,18,12,1,0,20,21]],[[23,24,25,21,20,24,22]],[[15,19,9,10,25,24,7,8]],[[4,7,0,1,5]],[[7,6,8]],[[3,10,9,2]],[[25,10,3,21]],[[20,0,7,24]],[[14,17,16,13,12,18,19,15]],[[6,14,15,8]],[[11,5,1,12,13]],[[18,2,9,19]],[[11,13,16,22,24,7,4]],[[5,11,4]],[[16,17,23,22]],[[14,6,7,24,23,17]]]});
|
||||
env.done();
|
||||
}));
|
||||
},
|
||||
|
|
@ -53,8 +53,8 @@ export default {
|
|||
setSketch(win, app, '0:2', {"layers":[{"name":"sketch","data":[{"id":34,"_class":"TCAD.TWO.Segment","points":[[28,[29,-223.31035144238643],[30,-13.06272250777187]],[31,[32,-5.598309646187954],[33,495.76142089020044]]],"children":[34]},{"id":41,"_class":"TCAD.TWO.Segment","points":[[35,[36,-5.598309646187954],[37,495.76142089020044]],[38,[39,218.33407620133045],[40,-20.527135369355864]]],"children":[41]},{"id":48,"_class":"TCAD.TWO.Segment","points":[[42,[43,218.33407620133045],[44,-20.527135369355864]],[45,[46,-223.31035144238643],[47,-13.06272250777187]]],"children":[48]}]}]});
|
||||
cut(app, '0:2', 500);
|
||||
setSketch(win, app, '1:3', {"layers":[{"name":"sketch","data":[{"id":34,"_class":"TCAD.TWO.Segment","points":[[28,[29,20.80092487041237],[30,30.9464504729465]],[31,[32,359.90906163964087],[33,-79.21779295049502]]],"children":[34]},{"id":41,"_class":"TCAD.TWO.Segment","points":[[35,[36,359.90906163964087],[37,-79.21779295049502]],[38,[39,-472.1057825646785],[40,-293.4697818232062]]],"children":[41]},{"id":48,"_class":"TCAD.TWO.Segment","points":[[42,[43,-472.1057825646785],[44,-293.4697818232062]],[45,[46,20.80092487041237],[47,30.9464504729465]]],"children":[48]}]}]});
|
||||
//cut(app, '1:4', 50);
|
||||
assertScene(app, env, {"format":"LOOPS","vertices":[[-250,-250,-250],[-250,-250,-89.92411780734957],[-250,-250,117.59771265441589],[-250,-250,250],[-250,24.438723388262304,-169.15430109914888],[-250,117.07709154482764,-89.9241178073496],[-250,187.75152195374028,-89.9241178073496],[-250,250,-250],[-250,250,-89.92411780734957],[-250,250,117.59771265441589],[-250,250,250],[-222.26125142532885,24.438723388262304,-169.15430109914888],[-208.9483140098693,-250,-207.18004219340503],[-208.9483140098693,130.53137670117144,-207.18004219340503],[-208.9483140098693,233.34866460234332,-207.18004219340503],[-208.9483140098693,250,-207.18004219340503],[-208.15895732561484,24.438723388262304,-169.15430109914888],[-205.5726669021471,170.1126824084925,-44.56473088447832],[-199.9768703670335,-250,225.00201188826748],[-199.9768703670335,250,225.00201188826748],[250,-250,-250],[250,-250,250],[250,24.438723388262304,-169.15430109914888],[250,170.1126824084925,-44.56473088447832],[250,250,-250],[250,250,250]],"faces":[[[3,2,18,12,1,0,20,21]],[[23,24,25,21,20,24,22]],[[15,19,9,10,25,24,7,8]],[[0,1,5,4,7]],[[8,7,6]],[[2,3,10,9]],[[25,10,3,21]],[[20,0,7,24]],[[14,17,16,13,12,18,19,15]],[[6,14,15,8]],[[11,5,1,12,13]],[[18,2,9,19]],[[11,13,16,22,24,7,4]],[[5,11,4]],[[16,17,23,22]],[[14,6,7,24,23,17]]]});
|
||||
cut(app, '1:3', 50);
|
||||
assertScene(app, env, {"format":"LOOPS","vertices":[[-250,-250,-250],[-250,-250,250],[-250,250,-250],[-250,250,250],[-218.33407620133045,-250,-20.527135369355864],[-218.33407620133045,250,-20.527135369355864],[-100.99700543871825,-250,250],[-100.99700543871825,250,250],[110.75295183637142,-123.92982319147082,250],[110.75295183637142,-22.81078696591853,250],[110.75295183637147,250,250],[110.7529518363715,-250,250],[165.1375816702817,-129.43889625756043,250],[165.1375816702817,-15.860748783049335,250],[175.84726740609295,30.94645047294649,97.86528532562242],[221.8161377952996,30.94645047294649,117.53411739924385],[223.31035144238643,-250,-13.06272250777187],[223.31035144238643,-197.6114609132843,-13.06272250777187],[223.31035144238643,-48.46538501303118,-13.06272250777187],[223.31035144238643,250,-13.06272250777187],[250,-250,-250],[250,-250,250],[250,-215.08287570101118,-75.44024399385171],[250,-184.99101442530412,51.6644051608298],[250,-93.12059491922011,-75.4402439938517],[250,-16.208770773268895,51.664405160829745],[250,250,-250],[250,250,250]],"faces":[[[11,16,4,6,1,0,20,21]],[[20,26,27,21],[23,25,24,22]],[[7,5,19,10,27,26,2,3]],[[2,0,1,3]],[[13,12,8,11,21,27,10,9]],[[1,6,7,3]],[[20,0,2,26]],[[5,7,6,4]],[[14,9,10,19,18]],[[8,17,16,11]],[[22,24,18,17]],[[18,19,5,4,16,17]],[[8,12,23,22,17]],[[13,9,14,15]],[[24,25,15,14,18]],[[12,13,15,25,23]]]});
|
||||
env.done();
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue