You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
#include <real.hpp>
|
|
|
|
#include <vec.hpp>
|
|
|
|
#include <line.hpp>
|
|
|
|
|
|
|
|
class ISolid {
|
|
|
|
public:
|
|
|
|
virtual ~ISolid() = default;
|
|
|
|
|
|
|
|
virtual real sdf(Vec3 p);
|
|
|
|
};
|
|
|
|
|
|
|
|
class IExtrudedSolid : public ISolid {
|
|
|
|
protected:
|
|
|
|
Pt3Array _profile;
|
|
|
|
real rScale;
|
|
|
|
};
|
|
|
|
|
|
|
|
class extrudedSolidPolyline : public IExtrudedSolid {
|
|
|
|
protected:
|
|
|
|
Polyline _axis;
|
|
|
|
};
|
|
|
|
|
|
|
|
class extrudedSolidPolynomialLine : public IExtrudedSolid {
|
|
|
|
protected:
|
|
|
|
PolynomialLine _axis;
|
|
|
|
|
|
|
|
};
|