Strategy which assigns constant material.
More...
#include <plask/geometry/edge.hpp>
Strategy which assigns constant material.
Definition at line 142 of file edge.hpp.
◆ SimpleMaterial()
plask::edge::SimpleMaterial::SimpleMaterial |
( |
const shared_ptr< Material > & |
material | ) |
|
|
inline |
Construct SimpleMaterial strategy which use given material.
- Parameters
-
material | material which will be assigned to result_material by apply method |
Definition at line 153 of file edge.hpp.
◆ applyHi()
Apply strategy to given point p
.
- Parameters
-
[in] | bbox_lo,bbox_hi | coordinates of geometry object bounding box in strategy working direction |
[in,out] | p | coordinate of point in strategy working direction, it's (must be) higher than bbox_hi , this method can move this point |
[out] | result_material | optionally, this method can assign to it material which should be used |
[in] | opposite | strategy at opposite side (if known) |
Implements plask::edge::Strategy.
Definition at line 39 of file edge.cpp.
◆ applyLo()
Apply strategy to given point p
.
- Parameters
-
[in] | bbox_lo,bbox_hi | coordinates of geometry object bounding box in strategy working direction |
[in,out] | p | coordinate of point in strategy working direction, it's (must be) lower than bbox_lo , this method can move this point |
[out] | result_material | optionally, this method can assign to it material which should be used |
[in] | opposite | strategy at opposite side (if known) |
Implements plask::edge::Strategy.
Definition at line 36 of file edge.cpp.
◆ clone()
◆ str()
std::string plask::edge::SimpleMaterial::str |
( |
| ) |
const |
|
overridevirtual |
Get string representation of this strategy.
- Returns
- string representation of this strategy
Implements plask::edge::Strategy.
Definition at line 47 of file edge.cpp.
◆ type()
Type plask::edge::SimpleMaterial::type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ material
shared_ptr<Material> plask::edge::SimpleMaterial::material |
Material which will be assigned to result_material by apply method.
Definition at line 147 of file edge.hpp.
The documentation for this struct was generated from the following files: