Skip to content

Commit 5bee5eb

Browse files
committed
[NEWTOOL] Created a node alias *Correct Polygon Winding SOP* which creates a PolyDoctor and pre-configures its settings to correct inconsistent face windings on a mesh, which would like some patches of faces are facing the wrong way.
1 parent 874c7b0 commit 5bee5eb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

toolbar/aliases.shelf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,22 @@ compile_end.setPosition(for_each_end.position() + hou.Vector2(0, -1))
523523
<script scriptType="python"><![CDATA[
524524
import soptoolutils
525525
node = soptoolutils.genericTool(kwargs, 'matchsize', exact_node_type=False)
526+
]]></script>
527+
</tool>
528+
529+
<tool name="labs::correct_polygon_winding" label="Correct Polygon Winding" icon="SOP_polydoctor">
530+
<toolMenuContext name="viewer">
531+
<contextNetType>SOP</contextNetType>
532+
</toolMenuContext>
533+
<toolMenuContext name="network">
534+
<contextNetType>SOP</contextNetType>
535+
</toolMenuContext>
536+
<toolSubmenu>Labs/Geometry/Mesh: Refine</toolSubmenu>
537+
<script scriptType="python"><![CDATA[
538+
import soptoolutils
539+
node = soptoolutils.genericTool(kwargs, 'polydoctor', exact_node_type=False)
540+
node.setParms({'illformed': 0, 'fixwindings': 1})
541+
node.setName('correct_polygon_winding1', True)
526542
]]></script>
527543
</tool>
528544

0 commit comments

Comments
 (0)