forked from Ultimaker/CuraEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDensityProvider.h
More file actions
33 lines (26 loc) · 730 Bytes
/
DensityProvider.h
File metadata and controls
33 lines (26 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//Copyright (c) 2017 Tim Kuipers
//Copyright (c) 2018 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#ifndef INFILL_DENSITY_PROVIDER_H
#define INFILL_DENSITY_PROVIDER_H
namespace cura
{
struct AABB3D;
/*!
* Parent class of function objects which return the density required for a given region.
*
* This density requirement can be based on user input, distance to the 3d model shell, Z distance to top skin, etc.
*/
class DensityProvider
{
public:
/*!
* \return the approximate required density of a cube
*/
virtual float operator()(const AABB3D& aabb) const = 0;
virtual ~DensityProvider()
{
};
};
} // namespace cura
#endif // INFILL_DENSITY_PROVIDER_H