Model.linefromsurfedgecomp#
- Model.linefromsurfedgecomp(collection, comp_flag)#
Takes selected surface edges or edges of selected surfaces and makes their copy as free lines. This function replaces the function
Model.linefromsurfedge()which only creates a copy of edges in the component of the surfaces.- Parameters:
collection (Collection) – The collection containing the entities to make their copies as free lines. Valid entities are surfaces and lines. If the entiities are surfaces, then a copy of all surface edges is created.
comp_flag (int) – Flag to specify whether copied lines are created in current component (1) or in the component of surfaces they were copied from (0).
Example#
Copy all surface edges of surface with ID 12 into the current component#import hm import hm.entities as ent model = hm.Model() model.linefromsurfedgecomp(collection=hm.Collection(model, 12), comp_flag=1)