# BUG: Geometry Script Polygroup Angle

**URL:** <https://forums.unrealengine.com/t/bug-geometry-script-polygroup-angle/1691634>\
**Category:** Asset Creation\
**Tags:** unreal-engine, geometry-script, geometry, bug-report, Blueprint, question, CPP\
**Created:** [February 15, 2024, 11:11pm UTC](https://forums.unrealengine.com/t/bug-geometry-script-polygroup-angle/1691634 "2024-02-15T23:11:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DELGOODIE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/delgoodie/32/1103781_2.png) [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Post date:** [February 15, 2024, 11:11pm UTC](https://forums.unrealengine.com/t/bug-geometry-script-polygroup-angle/1691634/1 "2024-02-15T23:11:17Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/a/f4a3dba721a25c36d9f3929203d8dec973997cbf.png)

Here is a simple reproducible script computing polygroups from Angle and then setting materials for each poly group (purely for visualization).

Running this script on a simple cylinder results in only one side correctly being computed.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/c/0bc481045f54cf3882841871e6909f4a1ed05401.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/9/6d9112cdcdab354f92ea13eabd4395962819d91e.jpeg)

I can use the same exact angle filtering for SplitNormals and get perfect results, but compute poly groups by angle is bugged.

On more complicated geometries it fails worse!

---

<div class="post-metadata">

**Author:** ![DELGOODIE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/delgoodie/32/1103781_2.png) [@DELGOODIE](https://forums.unrealengine.com/u/DELGOODIE)\
**Post date:** [February 15, 2024, 11:47pm UTC](https://forums.unrealengine.com/t/bug-geometry-script-polygroup-angle/1691634/2 "2024-02-15T23:47:28Z")

</div>

A hacky work-around is to set Min Group Size to 1 which (following the source code) disables to the PostProcessing function in the FPolygroupsGenerator. This function seems to be squashing multiple polygroups on to each other smh.

---

<div class="post-metadata">

**Author:** ![amir\_hm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@amir\_hm](https://forums.unrealengine.com/u/amir_hm)\
**Post date:** [February 4, 2025, 9:10pm UTC](https://forums.unrealengine.com/t/bug-geometry-script-polygroup-angle/1691634/3 "2025-02-04T21:10:29Z")

</div>

Thanks, setting the group size to one is working. Took me hours to finds out whats wrong

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 6, 2025, 9:11pm UTC](https://forums.unrealengine.com/t/bug-geometry-script-polygroup-angle/1691634/4 "2025-03-06T21:11:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
