Commit e4ab9eb
[algorithm] Refactor: Add sanity checks and failproof (#49)
* [algorithm] check whether a constraint solver is found in the context at init
* [algorithm] check whether user provided acceptable values for thresholds used by the algorithm
* [algorithm] sum all lambda values applied on the tipGeom mstate
Still better to iterate and sum than accessing the first value (->[0]). It also
makes sense in case one defines the tip as a collection of points (in case the
needle has thickness).
* [algorithm] Distinguish execution flow between puncture and insertion based on m_couplingPts.empty
* Apply changes #1
Co-authored-by: erik pernod <erik.pernod@gmail.com>
* Apply changes #2
Co-authored-by: erik pernod <erik.pernod@gmail.com>
* Apply changes #3
Co-authored-by: erik pernod <erik.pernod@gmail.com>
* Apply change #4 - Style
Co-authored-by: erik pernod <erik.pernod@gmail.com>
---------
Co-authored-by: erik pernod <erik.pernod@gmail.com>1 parent df8a37f commit e4ab9eb
1 file changed
Lines changed: 26 additions & 6 deletions
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
56 | | - | |
57 | | - | |
| 55 | + | |
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
| |||
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
| |||
106 | 122 | | |
107 | 123 | | |
108 | 124 | | |
109 | | - | |
| 125 | + | |
110 | 126 | | |
111 | 127 | | |
112 | 128 | | |
113 | 129 | | |
114 | 130 | | |
115 | 131 | | |
116 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
117 | 137 | | |
118 | 138 | | |
119 | 139 | | |
| |||
0 commit comments