Model.surfacefilletremove#

Model.surfacefilletremove(surfs_collection, lines_collection1, lines_collection2)#

Defeatures/removes selected fillet surfaces.

When a fillet surface is removed, the replacement surface is built by extending the surfaces adjacent to the fillet surface and trimming them by mutual intersections. At the free edges of the fillet surface, an imaginary surface is built that intersects the fillet surface normally having the free edge. The imaginary surfaces are used to trim the replacement surfaces to form free edges.

Sometimes, it may be necessary to change this default interpretation of fillet surface edges. For example, suppose that you want to replace a single fillet in a series of connected fillet surfaces. It is necessary to disconnect this fillet from the others by selecting the connecting edges and passing them as a second argument to the function.

Another example involves building replacement surfaces for an isolated fillet surface. An isolated fillet does not have adjacent surfaces from which to build extensions. You can select edges that are connected to an imaginary surface that is to be extended and pass those edges as the first argument to the function. The extension surfaces are built as the surface tangent to the fillet surface at the selected edges.

Parameters:
  • surfs_collection (Collection) – The collection containing the fillet surface entities to remove.

  • lines_collection1 (Collection) – The collection containing the fillet surfaces edges entities at which the extension surface replacing the fillet must be built. The extension surface is built by using the fillet surface instead of extending the surface that is adjacent to the fillet surface.

  • lines_collection2 (Collection) – The collection containing the fillet surfaces edges entities that are treated as free edges.

Example#

Remove fillet surface with ID 241, while use the edge with ID 635 to build a replacement surface as a tangent to the fillet surface, and treat edges with IDs 746 and 747 as free#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacefilletremove(
    surfs_collection=hm.Collection(model, ent.Surface, [241]),
    lines_collection1=hm.Collection(model, ent.Line, [635]),
    lines_collection2=hm.Collection(model, ent.Line, [746, 747]),
)