Entity from an edge

Technical discussions
Post Reply
Frank
Posts: 1
Joined: Wed Feb 27, 2019 1:25 am

Entity from an edge

Post by Frank »

Hello,
Is there a way to create entity from BRepEdge_DG?
I see method Model::AddBRepShape(&shape, &entity)
But I want just create entity avoiding addition to the model.

Thank you

Prashant Kande
Posts: 121
Joined: Mon Apr 04, 2016 4:55 am

Re: Entity from an edge

Post by Prashant Kande »

Hi Frank

This is a condensed answer:

IModel_DG > IObjectGenerator_DG > Create("Entity_DG", null) > query IEntity_DG > SetGeometryType("BRep") > IGeometry_DG > query IBRepGeometry_DG > SetShape(IBRepShape_DG shape, null)

Let me know if this is not clear. There are also some other ways.

Regards

Post Reply