NURBS Export

NURBS Export

vilo176
Participant Participant
1,079 Views
4 Replies
Message 1 of 5

NURBS Export

vilo176
Participant
Participant

Hi Folks,

 

I'm having a (suspected) issue when trying to export Revit geometry.

Basically, I've a scene with several objects of all kinds, and I want to export them in parametric description.

 

The problem arrises with RuledFace & HermiteFace.

To export them, I'm using "ExportUtils.GetNurbsSurfaceDataForSurface()" to cast the surface into a NURB like surface.

 

I've attached 2 screenshots :

 

"Revit wall.jpg" contains the Revit Wall defined by 2 RuledFace (Front / Back) & 4 PlanarFace (Top / Bottom / Left / Right).

 

"Exported.jpg" contains the exporter geometry.

Gray faces (Top / Bottom / Left / Right) are good.

Red faces (Front / Back) are what "GetNurbsSurfaceDataForSurface()" gives me for RuledFace, and you can see that they are not well placed.

 

Am I missing something in "GetNurbsSurfaceDataForSurface()" datas ?

 

Thanks 😉

0 Likes
1,080 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

I cannot tell off-hand what might be causing this. If all else fails, please submit a minimal reproducible case for passing on to the development team for analysis:

 

https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

vilo176
Participant
Participant

I've made another example, here are the new shots + RVT.

 

Underlying surfaces are filled in gray, and face boundaries are displayed in wireframe.

In case of NURBS surfaces (which are naturally bounded), face boundary must be inside surface (hence the issue here).

 

The obvious solution would be to stay with a RuledSurface definition (that is good), and not rely on "GetNurbsSurfaceDataForSurface()", but this leads to another issue : there is no guaranty that the reconstructed surface will be exactly the same as Revit ones, because a RuledSurface has to be recomputed.

 

0 Likes
Message 4 of 5

vilo176
Participant
Participant

Correction : by exporting directly RuledSurface curves, I have the same issue (boundaries not being inside the surface Min-Max).

So "GetNurbsSurfaceDataForSurface()" is not the problem here.

 

0 Likes
Message 5 of 5

vilo176
Participant
Participant

It seams that "degenerated" faces can be identified by "RuledSurface.IsExtruded".

When "IsExtruded == false", face definition (through "GetNurbsSurfaceDataForSurface") is good (i.e. Surface & Edges are lying within the same UV domain).

0 Likes