You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use an alignment with an IfcPolyline representation. The call to wrapper.function_item_evaluator in the script below crashes.
mapping::map_impl creates a taxonomy::loop::ptr. There is a function in taxonomy.h for loop_to_function_item_upgrade that converts the loop to a piecewise_function, but only gets called from taxonomy::cast/dcast.
I've tried to change the function signature of function_item_evaluator so it takes a taxonomy::ptr so the cast can be performed within the function. This led to all sorts of compile errors with the other "upgrade" functions in the cast\dcast functions.
Any ideas on how to resolve this?
Maybe a new C++ function that converts a loop to a piecewise function could be bound by the python wrapper. That would require something like
Traceback (most recent call last):
File "C:\Users\XXX\Case1.py", line 35, in <module>
eval = wrapper.function_item_evaluator(settings,fn) # crashes here
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\IfcOpenShell\_deps-vs2022-x64-installed\Python311\Lib\site-packages\ifcopenshell\ifcopenshell_wrapper.py", line 4543, in __init__
this = _ifcopenshell_wrapper.new_function_item_evaluator(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
NotImplementedError: Wrong number or type of arguments for overloaded function 'new_function_item_evaluator'.
Possible C/C++ prototypes are:
ifcopenshell::geometry::function_item_evaluator::function_item_evaluator(ifcopenshell::geometry::Settings const &,ifcopenshell::geometry::taxonomy::function_item::const_ptr)
ifcopenshell::geometry::function_item_evaluator::function_item_evaluator(ifcopenshell::geometry::function_item_evaluator const &)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
@aothms I need your help with something.
I'm trying to use an alignment with an IfcPolyline representation. The call to
wrapper.function_item_evaluator
in the script below crashes.mapping::map_impl
creates ataxonomy::loop::ptr
. There is a function in taxonomy.h forloop_to_function_item_upgrade
that converts the loop to a piecewise_function, but only gets called from taxonomy::cast/dcast.I've tried to change the function signature of function_item_evaluator so it takes a taxonomy::ptr so the cast can be performed within the function. This led to all sorts of compile errors with the other "upgrade" functions in the cast\dcast functions.
Any ideas on how to resolve this?
Maybe a new C++ function that converts a loop to a piecewise function could be bound by the python wrapper. That would require something like
Here is the traceback and original script.
Thanks for your input.
Rick
Beta Was this translation helpful? Give feedback.
All reactions