34 namespace extrudeModels
48 extrudeModel(typeName, dict),
49 axisPt_(coeffDict_.lookup(
"axisPt")),
50 axis_(coeffDict_.lookup(
"axis")),
54 *mathematicalConstant::
pi/180.0
67 point wedge::operator()
69 const point& surfacePoint,
70 const vector& surfaceNormal,
81 sliceAngle = -angle_/2.0;
85 sliceAngle = angle_/2.0;
91 sliceAngle = angle_*layer/nLayers_;
97 point d = surfacePoint - axisPt_;
99 d -= (axis_ &
d)*axis_;
101 scalar dMag =
mag(d);
103 point edgePt = surfacePoint -
d;
106 point rotatedPoint = edgePt;
110 vector n = (d/dMag) ^ axis_;
114 -
sin(sliceAngle)*
mag(d)*n;