Commit 68a00b9
authored
[algorithm] Clean up of the InsertionAlgorithm class (#45)
* [src] Added the .clang-format file from main SOFA repository
* [algorithm] Removed commented outputDist variable
* [algorithm] Added transparency to RGBAColor for the coupling points drawn
* [algorithm] Bring back the mstate that was deleted
* [algorithm] Set default boolean values for drawing to false
* [algorithm] Change name of sphereRadius to drawPointsScale
[scene] Adjust scene files
* [algorithm] Simplified syntax using typedefs for code brevity
* [algorithm] Removed unnecessary sofa:: namespace qualifier
* [algorithm] Re-organized variables' definition
* [algorithm] Renamed detection output variables to distinguish their use for either puncture or insertion
* [algorithm] Renamed link variables to BaseGeometry components
[scene] Changed scenes accordingly
* Signify that the link is directed at a Geometry object
* For the needle, the name signifies whether the Geometry refers to the tip or the shaft
* For the punctured volume, the name signifies whether the Geometry will be used for:
1. the puncture and, thus, only the surface is of interest or
2. the insertion and, thus, the volume is now of interest
* The user should not care whether puncture/insertion happens "from" the
needle to the "destination" surface/volume. The user should be concerned
with appropriately defining the tip and shaft geometry as well as the
geometries of the punctured volumes and surfaces.
* [algorithm] Renamed Geometry iterators, Operations specializations and returned proximities
* [algorithm] Renamed threshold variables and re-wrote descriptions
[scene] Adjusted scenes accordingly
* [algorithm] Simplified link check in doDetection
* [algorithm] Simplified pointer checks against nullptr
* [algorithm] Format code using .clang-format shipped with main SOFA distro
* [algorithm] Replaced auto with ElementIterator::SPtr for clarity for iterators
* [algorithm] Replaced auto with BaseProximity::SPtr when returned from Operations functions
* [algorithm] Re-use tipProx pointer instead of re-creating one when projective is set to true
* [src] Delete .clang-format
Not really needed1 parent 1f24c84 commit 68a00b9
4 files changed
Lines changed: 187 additions & 160 deletions
File tree
- scenes
- src/sofa/collisionAlgorithm/algorithm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
0 commit comments