Skip to content

Commit

Permalink
Clifford Wolf:
Browse files Browse the repository at this point in the history
	Massive rename: s/polyeder/polyhedron/g



git-svn-id: http://svn.clifford.at/openscad/trunk@113 b57f626f-c46c-0410-a088-ec61d464b74c
  • Loading branch information
clifford committed Oct 19, 2009
1 parent 28c3947 commit 3116be0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dxftess.cc
Expand Up @@ -223,8 +223,8 @@ void dxf_tesselate(PolySet *ps, DxfData *dxf, double rot, bool up, double h)
}

// GLU tessing creates T-junctions. This is ok for GL displaying but creates
// invalid polyeders for CGAL. So we split this tirangles up again in order
// to create polyeders that are also accepted by CGAL..
// invalid polyhedrons for CGAL. So we split this tirangles up again in order
// to create polyhedrons that are also accepted by CGAL..
// All triangle edges are sorted by their atan2 and only edges with a simmilar atan2
// value are compared. This speeds up this code block dramatically (compared to the
// n^2 compares that are neccessary in the trivial implementation).
Expand Down
2 changes: 1 addition & 1 deletion examples/example011.scad
@@ -1,4 +1,4 @@
polyeder(
polyhedron(
points = [
[10, 0, 0],
[0, 10, 0],
Expand Down
2 changes: 1 addition & 1 deletion mainwin.cc
Expand Up @@ -814,7 +814,7 @@ void MainWindow::actionExportSTLorOFF(bool stl_mode)
}

if (!root_N->is_simple()) {
PRINT("Object isn't a single polyeder or otherwise invalid! Modify your design..");
PRINT("Object isn't a single polyhedron or otherwise invalid! Modify your design..");
current_win = NULL;
return;
}
Expand Down
14 changes: 7 additions & 7 deletions primitives.cc
Expand Up @@ -26,7 +26,7 @@ enum primitive_type_e {
CUBE,
SPHERE,
CYLINDER,
POLYEDER
POLYHEDRON
};

class PrimitiveModule : public AbstractModule
Expand Down Expand Up @@ -69,7 +69,7 @@ AbstractNode *PrimitiveModule::evaluate(const Context *ctx, const ModuleInstanci
if (type == CYLINDER) {
argnames = QVector<QString>() << "h" << "r1" << "r2" << "center";
}
if (type == POLYEDER) {
if (type == POLYHEDRON) {
argnames = QVector<QString>() << "points" << "triangles";
}

Expand Down Expand Up @@ -125,7 +125,7 @@ AbstractNode *PrimitiveModule::evaluate(const Context *ctx, const ModuleInstanci
}
}

if (type == POLYEDER) {
if (type == POLYHEDRON) {
node->points = c.lookup_variable("points");
node->triangles = c.lookup_variable("triangles");
}
Expand All @@ -138,7 +138,7 @@ void register_builtin_primitives()
builtin_modules["cube"] = new PrimitiveModule(CUBE);
builtin_modules["sphere"] = new PrimitiveModule(SPHERE);
builtin_modules["cylinder"] = new PrimitiveModule(CYLINDER);
builtin_modules["polyeder"] = new PrimitiveModule(POLYEDER);
builtin_modules["polyhedron"] = new PrimitiveModule(POLYHEDRON);
}

int get_fragments_from_r(double r, double fn, double fs, double fa)
Expand Down Expand Up @@ -342,7 +342,7 @@ PolySet *PrimitiveNode::render_polyset(render_mode_e) const
}
}

if (type == POLYEDER)
if (type == POLYHEDRON)
{
for (int i=0; i<triangles.vec.size(); i++)
{
Expand Down Expand Up @@ -370,8 +370,8 @@ QString PrimitiveNode::dump(QString indent) const
text.sprintf("sphere($fn = %f, $fa = %f, $fs = %f, r = %f);\n", fn, fa, fs, r1);
if (type == CYLINDER)
text.sprintf("cylinder($fn = %f, $fa = %f, $fs = %f, h = %f, r1 = %f, r2 = %f, center = %s);\n", fn, fa, fs, h, r1, r2, center ? "true" : "false");
if (type == POLYEDER)
text.sprintf("polyeder(points = %s, triangles = %s);\n", points.dump().toAscii().data(), triangles.dump().toAscii().data());
if (type == POLYHEDRON)
text.sprintf("polyhedron(points = %s, triangles = %s);\n", points.dump().toAscii().data(), triangles.dump().toAscii().data());
((AbstractNode*)this)->dump_cache = indent + QString("n%1: ").arg(idx) + text;
}
return dump_cache;
Expand Down
2 changes: 1 addition & 1 deletion render.cc
Expand Up @@ -152,7 +152,7 @@ CSGTerm *RenderNode::render_csg_term(double m[16], QVector<CSGTerm*> *highlights
}

if (!N.is_simple()) {
PRINTF("WARNING: Result of render() isn't a single polyeder or otherwise invalid! Modify your design..");
PRINTF("WARNING: Result of render() isn't a single polyhedron or otherwise invalid! Modify your design..");
return NULL;
}

Expand Down

0 comments on commit 3116be0

Please sign in to comment.