Continuing working on dumping the world
This commit is contained in:
@@ -137,4 +137,17 @@ BoundingBox Cone::getBounds()
|
||||
ret.max.fixPoint();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
void Cone::dumpMe(FILE *fp)
|
||||
{
|
||||
fprintf(fp, "\"Type\": \"Cylinder\",\n");
|
||||
Tuple t = this->transformMatrix * Point(0, 0, 0);
|
||||
fprintf(fp, "\"pseudocenter\": { \"x\": %f, \"y\": %f, \"z\": %f}, \n",
|
||||
t.x, t.y, t.z);
|
||||
t = this->transformMatrix * Point(0, this->minCap, 0);
|
||||
fprintf(fp, "\"min\": %f, \n", t.y);
|
||||
t = this->transformMatrix * Point(1, this->maxCap, 1);
|
||||
fprintf(fp, "\"max\": %f, \n", t.y);
|
||||
Shape::dumpMe(fp);
|
||||
}
|
||||
Reference in New Issue
Block a user