Extrude a 2D SDF into 3D
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | public | :: | h | ||||
integer, | public | :: | layer |
Layer ID of SDF |
|||
type(opticalProp_t), | public | :: | optProps |
Optical property of the SDF |
|||
class(sdf_base), | public, | pointer | :: | prim | |||
real(kind=wp), | public | :: | transform(4,4) |
Transform to apply to SDF. |
Initialise the extrude modifier for a SDF.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(sdf_base), | target | :: | prim |
SDF to modify |
||
real(kind=wp), | intent(in) | :: | h |
Distance to extrude by. |
Evaluation function for Extrude modifier.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(extrude), | intent(in) | :: | this | |||
type(vector), | intent(in) | :: | pos |
Position to evaluate the modifier at |
type, extends(sdf_base) :: extrude real(kind=wp) :: h class(sdf_base), pointer :: prim contains procedure :: evaluate => eval_extrude end type extrude