deleting faces in a polygon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a poly cube with certain subdivisions and my code deletes certain faces at certain if conditions using polyDelFacet()
The problem is if some faces are deleted at a certain condition, all the remaining faces get renumbered
so if another condition is also true it ends up deleting the wrong faces because if the renumbering that happened in the prev condition.
Is there a way that the faces remain with the same numbers even if any faces are deleted?
or any other way I could deal with this?
example:
(pseudo code)
if a have a cube with subdivisions =1 so we have 6 faces
say code is
if x+y>2:
polyDelFacet(f[1] of cube)
else:
if x+y<4:
polyDelFacet(f[3]) of cube)
and x+y=3 then both conditions are true
what happens is face 1 is deleted correctly but the deleted face 3 is not the correct one I wanted to delete since 3 was the number of the face when the all the faces of the cube existed before deleting face number 1
I don't want this behavior. I want the face numbers to remain constant cause my code has a lot of loops and conditions and it needs to apply to different scenarios