How to create a face?

How to create a face?

Anonymous
Not applicable
2,756 Views
0 Replies
Message 1 of 1

How to create a face?

Anonymous
Not applicable

How can I create a new `Face`?

 

I have a function which takes a `Face` and returns a `Solid`.  Internally it uses `GeometryCreationUtilities.CreateExtrusionGeometry`.

I would like to pass it a modified face like this:

Face newFace = modifyFace(face);
Solid solid = makeSolid(newFace);

I know I can accomplish what I'm trying to do by changing the function signature to `IEnumerable<CurveLoop>` instead of `Face` (this works because you can create a new `CurveLoop`).  But this makes extra lines of code and makes the final business logic more messy.

0 Likes
2,757 Views
0 Replies
Replies (0)