Twist a SDF
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=wp), | public | :: | k | ||||
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 twist modifier for a SDF.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(sdf_base), | target | :: | prim |
SDF to modify |
||
real, | intent(in) | :: | k |
Twist parameter. |
Evaluation function for Twist modifier.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(twist), | intent(in) | :: | this | |||
type(vector), | intent(in) | :: | pos |
Position to evaluate the modifier at |
type, extends(sdf_base) :: twist real(kind=wp) :: k class(sdf_base), pointer :: prim contains procedure :: evaluate => eval_twist end type twist