mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-14 04:12:53 +01:00
add fixtures for tests
This commit is contained in:
parent
69de018f45
commit
2029844453
3 changed files with 4 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -5,7 +5,7 @@ function testReconstruct0() {
|
|||
}
|
||||
|
||||
testReconstruct0();
|
||||
var face = face2;
|
||||
var face = face3;
|
||||
var polygons2D = face.polygons.map(csgPolyToSimple).map(polygonTransform(basisTransformation(face.basis)));
|
||||
var csgPolygons = polygons2D.map(function(p) {return new CSG.Polygon( p.map(function(v) { return new CSG.Vertex(new CSG.Vector3D(v));}) )} );
|
||||
var outline = TCAD.craft.findOutline(csgPolygons);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ require("./craft-fixtures.js");
|
|||
|
||||
var assert = require('assert');
|
||||
viz = function(name, polygons, segments) {
|
||||
var colors = ['aqua', 'black', 'blue', 'brown', 'crimson', 'fuchsia', 'fuschia', 'gray', 'green', 'lemon', 'lime', 'olive', 'orange', 'peach', 'pink', 'purple', 'salmon', 'tan', 'teal', 'violet', 'violet', 'blue', 'white', 'yellow'];
|
||||
var colors = ['aqua', 'black', 'blue', 'brown', 'crimson', 'gray', 'green', 'lemon', 'lime', 'olive', 'orange', 'peach', 'pink', 'purple', 'salmon', 'tan', 'teal', 'violet', 'violet', 'blue', 'white', 'yellow'];
|
||||
var bbox = new TCAD.BBox();
|
||||
var fs = require('fs');
|
||||
var builder = require('xmlbuilder');
|
||||
|
|
|
|||
Loading…
Reference in a new issue