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 think that there is a problem with "add_profile_representation" api and clippings.
In order to recreate the problem, try to create a new project with demo library and add a new column on 0,0,0 with the length 5m
After that, run this script
import blenderbim.tool as tool
import numpy as np
import ifcopenshell
Basically i want to apply a simple clipping plane on the column.
After that, try to regen the object: i get the same error as reported here
I think that the problem is in the "add_profile_representation" api.
I have created a possible solution and, if you want, i'll do a PR but, before that, i wanted to be sure that this is actually a bug...
Thanks,
Massimo
The text was updated successfully, but these errors were encountered:
I ended up doing this slightly simpler and using the ifcopenshell.util.element.copy which preserves the operation type instead of hardcoding DIFFERENCE and also fixing the same bug in the wall representation function.
I think that there is a problem with "add_profile_representation" api and clippings.
In order to recreate the problem, try to create a new project with demo library and add a new column on 0,0,0 with the length 5m
After that, run this script
import blenderbim.tool as tool
import numpy as np
import ifcopenshell
model = tool.Ifc.get()
obj = C.active_object
entity = tool.Ifc.get_entity(obj)
representation = entity.Representation[2][1]
matrix = np.eye(4)
matrix = ifcopenshell.util.placement.rotation(45,"X") @ matrix
matrix[:,3][0:3] = (0, 0, 3)
matrix = matrix.tolist()
ifcopenshell.api.run("geometry.add_boolean", model, representation = representation, type = "IfcHalfSpaceSolid", matrix = matrix)
Basically i want to apply a simple clipping plane on the column.
After that, try to regen the object: i get the same error as reported here
I think that the problem is in the "add_profile_representation" api.
I have created a possible solution and, if you want, i'll do a PR but, before that, i wanted to be sure that this is actually a bug...
Thanks,
Massimo
The text was updated successfully, but these errors were encountered: