thanks for the bonus example. On running your code I do run into an error at the #solve and update part
the error message below:
Traceback (most recent call last):
File "file:///C:/Users/Uday/OneDrive%20-%20sbp%20SE/Dokumente/coding/test4.py", line 44, in <module>
File "C:\Users\Uday\.rhinocode\py39-rh8\lib\site-packages\compas_fd\solvers\fd_constrained_numpy.py", line 85, in fd_constrained_numpy
_update_constraints(numdata, constraints, damping)
File "C:\Users\Uday\.rhinocode\py39-rh8\lib\site-packages\compas_fd\solvers\fd_constrained_numpy.py", line 129, in _update_constraints
constraint.location = numdata.xyz[vertex]
File "C:\Users\Uday\.rhinocode\py39-rh8\lib\site-packages\compas_fd\constraints\curveconstraint.py", line 41, in location
self.project()
File "C:\Users\Uday\.rhinocode\py39-rh8\lib\site-packages\compas_fd\constraints\curveconstraint.py", line 59, in project
xyz, self._param = self.geometry.closest_point(
File "C:\Users\Uday\.rhinocode\py39-rh8\site-envs\default-KA6C24DI\compas_rhino\geometry\curves\curve.py", line 272, in closest_point
result, t = self.rhino_curve.ClosestPoint(point_to_r
hino(point)) # type: ignore
AttributeError: 'NoneType' object has no attribute 'ClosestPoint'`Preformatted text`
I printed out Constraints and I see that some items are None where ever the vertex is not to be constrained, my guess it this None is causing the error ? print result below
print(constraints)
[None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), CurveConstraint(RhinoNurbsCurve(points=None, weigths=None, knots=None, multiplicities=None, degree=None, is_periodic=None), name=None), None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]
OS: Windows10
Rhino: Rhino 8.3.24 commercial version