dosimetry:userguide:design_task_functions:dtf
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dosimetry:userguide:design_task_functions:dtf [2015/08/07 20:36] – [Geometry] dpatenaude | dosimetry:userguide:design_task_functions:dtf [2021/07/29 18:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
* Compute the aperture without smoothing. | * Compute the aperture without smoothing. | ||
* Recommended mill radius value is is 4.7625mm (0.1875" | * Recommended mill radius value is is 4.7625mm (0.1875" | ||
- | * **compute_smooth_aperture:** | + | * **compute_smoothed_aperture:** |
- | * Compute an aperture smoothed with a Guassian type blur on all targets and organs | + | * Compute an aperture smoothed with a vertex shift on all targets and organs |
* Recommended mill radius value is is 4.7625mm (0.1875" | * Recommended mill radius value is is 4.7625mm (0.1875" | ||
* **smooth_aperture: | * **smooth_aperture: | ||
- | * Smooth an existing aperture with a Gaussian type blur. | + | * Smooth an existing aperture with a vertex shift. |
* **get_field_rect: | * **get_field_rect: | ||
* Gets the bounding box (in BEV) for the aperture opening (at true size not projected). | * Gets the bounding box (in BEV) for the aperture opening (at true size not projected). | ||
Line 23: | Line 23: | ||
* Builds an aperture using the given point list. | * Builds an aperture using the given point list. | ||
* Recommended mill radius value is is 4.7625mm (0.1875" | * Recommended mill radius value is is 4.7625mm (0.1875" | ||
+ | * **remove_polyset_holes: | ||
+ | * A polyset' | ||
+ | * This function removes the holes from a polyset of an existing aperture (e.g.: Call compute_aperture() and using the polyset from the returned aperture call remove_polyset_holes(). Then replace the original aperture polyset with the polyset returned from remove_polyset_holes()) | ||
+ | * **apply_mill_radius: | ||
+ | * This function applies a machinability enforcement using a tool mill radius to a polyset of an existing aperture. The resulting polyset shape will not have corners that produce machined under cutting for the mill radius defined. | ||
==== Geometry ==== | ==== Geometry ==== | ||
Line 38: | Line 43: | ||
==== Computing an Aperture Shape ==== | ==== Computing an Aperture Shape ==== | ||
- | This example will provide a high level walk through of calling the //compute_smooth_aperture// function (note // | + | This example will provide a high level walk through of calling the //compute_smoothed_aperture// function (note // |
- Construct a // | - Construct a // | ||
Line 66: | Line 71: | ||
- The // | - The // | ||
- <code cpp> | - <code cpp> | ||
- | // Compute the aperture shape. Parameters are: aperture_creation_params, | + | // Compute the aperture shape. Parameters are: aperture_creation_params, |
- | aperture aper = compute_smoothed_aperture(ap_params, | + | aperture aper = compute_smoothed_aperture(ap_params, |
</ | </ | ||
Line 124: | Line 129: | ||
Enforcing machinability of the apertures at all evaluation steps is required in order to achieve plan vs. actual. Determining the machinable aperture shape is accomplished by performing an offset of the current “unmachinable” aperture shape by the radius of the final milling tool (in either the inward or outward direction) and then re-offsetting this result by the same distance. Machinability is enforced during aperture computation by using the // | Enforcing machinability of the apertures at all evaluation steps is required in order to achieve plan vs. actual. Determining the machinable aperture shape is accomplished by performing an offset of the current “unmachinable” aperture shape by the radius of the final milling tool (in either the inward or outward direction) and then re-offsetting this result by the same distance. Machinability is enforced during aperture computation by using the // | ||
- | Additionally, | + | Additionally, |
The images below provide an exaggerated visual explanation of the creation options for aperture smoothing and mill radius. | The images below provide an exaggerated visual explanation of the creation options for aperture smoothing and mill radius. | ||
- <imgref ap_beam_setup>: | - <imgref ap_beam_setup>: | ||
+ | - <imgref ap_smoothalgorithm>: | ||
- <imgref ap_noradiusnosmooth>: | - <imgref ap_noradiusnosmooth>: | ||
- | * Note: Recommended mill raiud value is is 2.3815mm (0.09375" | + | * Note: Recommended mill radius |
- <imgref ap_radiusnosmooth>: | - <imgref ap_radiusnosmooth>: | ||
- | - <imgref ap_radiussmooth>: | + | - <imgref ap_radiussmooth>: |
+ | |||
+ | <WRAP center 50%> | ||
< | < | ||
+ | < | ||
+ | </ | ||
<WRAP center 85%> | <WRAP center 85%> | ||
- | < | + | < |
- | < | + | < |
- | < | + | < |
</ | </ | ||
- | |||
==== Aperture Shape Manipulation ==== | ==== Aperture Shape Manipulation ==== | ||
Line 160: | Line 169: | ||
ap_params.overrides.push_back(aperture_manual_override(make_polyset(poly), | ap_params.overrides.push_back(aperture_manual_override(make_polyset(poly), | ||
ap_params.half_planes.push_back(aperture_half_plane(make_vector(0., | ap_params.half_planes.push_back(aperture_half_plane(make_vector(0., | ||
- | aperture aper = compute_smoothed_aperture(ap_params, | + | aperture aper = compute_smoothed_aperture(ap_params, |
</ | </ | ||
=== Structure Centerline === | === Structure Centerline === |
dosimetry/userguide/design_task_functions/dtf.1438979790.txt.gz · Last modified: (external edit)