add fixtures for tests

This commit is contained in:
Val Erastov 2015-11-12 20:01:54 -08:00
parent 69de018f45
commit 2029844453
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View file

@ -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);

View file

@ -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');