face issue and more ...

face issue and more ...

Ning_Zhou
Advocate Advocate
607 Views
2 Replies
Message 1 of 3

face issue and more ...

Ning_Zhou
Advocate
Advocate

assume all faces / curves are coplanar:

1) is there a way to do face boolean operation like join all planar faces together?

2) is there a way to create extrusion from face?

3) is there a way to check if curve is inside face? looks like Face.Intersect will treat all coplanar curves as SetComparisonResult.Subset, i'm currently using Face.IsInside which is not efficient.

thanks.

0 Likes
608 Views
2 Replies
Replies (2)
Message 2 of 3

mikako_harada
Community Manager
Community Manager

 

1) is there a way to do face boolean operation like join all planar faces together?

 

How about the following method? 

>>>>

Face.Intersect Method (Face)

Calculates the intersection of the specified face with this face and returns the intersection results.
<<<<



2) is there a way to create extrusion from face?

 

>>>>

FamilyItemFactory.NewExtrusion Method 

Add a new Extrusion instance into the Autodesk Revit family document.

<<<<

you can defind profile from a face. 



3) is there a way to check if curve is inside face? looks like Face.Intersect will treat all coplanar curves as SetComparisonResult.Subset, i'm currently using Face.IsInside which is not efficient.

 

Looks like you already tried.  But I would try below and some combinations. 

 

>>>>

Face.Intersect Method (Face)
Calculates the intersection of the specified face with this face and returns the intersection results.

 

Face..::..Intersect Method (Curve)

 

Calculates the intersection of the specified curve with this face.
 

Face.IsInside Method (UV)

Indicates whether the specified point is within this face.

 

<<<<


Mikako Harada
Developer Technical Services
0 Likes
Message 3 of 3

Ning_Zhou
Advocate
Advocate
thanks Mikako.

since all faces / curves are coplanar, Face.Intersect won't work, besides, what i need is basically the 2D face boolean operation.

you can create extrusion based on simple profile, but not relatively complicated profile, until factory can make available of sketch-mode editing which will solve lots of issues!
0 Likes