Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Delete elements in polygon does not delete nodes

Delete elements in polygon does not delete nodes 1 month 1 week ago #45622

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
Hi Alan,

When using function Edit -> T3 Mesh -> Delete elements in polygone, BK deletes element but not nodes.


Open original.t3s and hole.i2s, use function Delete Elements in polygon, save output as hole.t3s
Display nodes in BK for hole.t3s
hole wireframe


Nodes hole



Expected result : Nodes are deleted too
Attachments:
The administrator has disabled public write access.

Delete elements in polygon does not delete nodes 1 month 1 week ago #45624

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
"Delete Elements in Polygon" is deleting an element when it is entirely within a polygon... so I don't think this is a bug, per se. I think, rather, you're asking for one more option to "Delete Nodes in Polygon".

I'd be willing to add that new feature as it seems independently useful too.

Stay tuned... kindly... Alan
The administrator has disabled public write access.

Delete elements in polygon does not delete nodes 1 month 1 week ago #45625

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
Hi all,

By design, the purpose of the function "Edit->T3 Mesh->Delete Elements in Polygon" is to cut holes or remove unwanted sections of a mesh. Both elements AND nodes should be removed.

So, the new behaviour can indeed be considered a bug.

Cheers... Martin
The administrator has disabled public write access.

Delete elements in polygon does not delete nodes 1 month 1 week ago #45626

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
Hi,

The underlying code currently has 3 ways to delete elements:
  1. if mode = 0, delete elements whose centres are inside of the constraint polygon
  2. if mode = 1, delete element if all nodes are inside of the constraint polygon
  3. if mode = 2, delete element if one node is inside of the constraint polygon

And "Edit -> T3 Mesh -> Delete Elements in Polygon" currently uses mode 1. This has been so for the last 10 years or more; unchanged by me.

I am planning to allow the person using this menu item to decide which mode they wish to use rather than the current hard coded approach of always using mode 1.

Kindly... Alan
The administrator has disabled public write access.

Delete elements in polygon does not delete nodes 1 month 1 week ago #45627

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
The next BK installer after 9 October 2024 will contain this new feature.

2024-10-09_Exposingall3elementdeletionmodes.png



Kindly... Alan
The administrator has disabled public write access.

Delete elements in polygon does not delete nodes 1 month 1 week ago #45629

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
As specified by Martin, nodes not connected to another by an element should be deleted too.

In current BK, only elements are deleted but the nodes remain which is unwanted and a new behavior compared to stable BK (3.3.4 ?).
The administrator has disabled public write access.

Delete elements in polygon does not delete nodes 1 month 1 week ago #45630

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
DoCullUnusedNodes() is being internally called before I made changes and still being called after the new feature I mention above.

Are you saying that unused nodes are not being removed?

Kindly... Alan
The administrator has disabled public write access.

Delete elements in polygon does not delete nodes 1 month 1 week ago #45631

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
Exactly. Unused nodes are not removed.
See screenshot in original post.

Wireframe shows that elements are deleted but second screenshot shows that nodes are not removed.

If you open zip file, you will see 2 t3s. In both the node count is the same but not element count.
The administrator has disabled public write access.
The following user(s) said Thank You: a.barton

Delete elements in polygon does not delete nodes 1 month 1 week ago #45632

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
Ok... now I understand what you mean more clearly. Thanks for that...

I'll have a look tomorrow.

Kindly... Alan
The administrator has disabled public write access.
The following user(s) said Thank You: nicogodet

Delete elements in polygon does not delete nodes 1 month 1 week ago #45633

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
The next installer after 10 October 2024 will have a fix.

It was an interesting bug! Thanks for reporting it. In fact, it had very little to do with culling unused nodes and more to do with the general code being used behind the scenes by the culling code.

2024-10-10_BugFixForCullingNodes.png


Kindly... Alan
The administrator has disabled public write access.
The following user(s) said Thank You: nicogodet
  • Page:
  • 1
  • 2
Moderators: Serrer, a.barton

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.