It works and required object is being created. But if I use the 'Clip Tool' (Shift + N) on resulting object then its mesh become ruined (missing faces and edges). I checked it by exporting the object as OBJ and opening in other software. If I set fill style or fill color the mesh become fixed again (same way to check - export to OBJ). Same effect may be achieved by using vs.ClipSurface() function.
There is an original tool (AEC/Roof Face...). It works without mentioned issue. I tried to compare created roof faces (my tool and the original): Export/Export Script... and compare {Object Creation Code} sections. First parts are identical but the original tool creates more entities. I don't understand why and I couldn't re-use it in my code properly.
So my question is: how to properly create Roof Face objects?
Creation of a Roof Face
in Python Scripting
Posted
Hi
I need to create a Roof Face. It should have rectangular shape with predefined thickness. Here is my code:
It works and required object is being created. But if I use the 'Clip Tool' (Shift + N) on resulting object then its mesh become ruined (missing faces and edges). I checked it by exporting the object as OBJ and opening in other software. If I set fill style or fill color the mesh become fixed again (same way to check - export to OBJ). Same effect may be achieved by using vs.ClipSurface() function.
There is an original tool (AEC/Roof Face...). It works without mentioned issue. I tried to compare created roof faces (my tool and the original): Export/Export Script... and compare {Object Creation Code} sections. First parts are identical but the original tool creates more entities. I don't understand why and I couldn't re-use it in my code properly.
So my question is: how to properly create Roof Face objects?
I use Vectorworks 2019.