35 lines
605 B
C++
35 lines
605 B
C++
|
|
#include <math.h>
|
|
|
|
#include <iostream>
|
|
|
|
#include "Extrude.h"
|
|
#include "util/Solver.h"
|
|
|
|
using namespace std;
|
|
|
|
#define FP_EQUAL(x,y) (fabs((x)-(y)) < 0.000001)
|
|
|
|
Extrude::Extrude()
|
|
{
|
|
}
|
|
|
|
Shape::IntersectionList Extrude::intersect(refptr<Shape> _this, const Ray & ray)
|
|
{
|
|
Ray ray_inv = m_inverse.transform_ray(ray);
|
|
IntersectionList res;
|
|
|
|
return res;
|
|
}
|
|
|
|
void Extrude::addPolygon(refptr<Polygon> polygon)
|
|
{
|
|
m_polygons.push_back(polygon);
|
|
}
|
|
|
|
void Extrude::addOffset(double distance,
|
|
const Vector & scale, const Vector & shift)
|
|
{
|
|
m_offsets.push_back(Offset(distance, scale, shift));
|
|
}
|