Setting the LOD value on ExportContext

Setting the LOD value on ExportContext

ebarMLN7G
Enthusiast Enthusiast
820 Views
3 Replies
Message 1 of 4

Setting the LOD value on ExportContext

ebarMLN7G
Enthusiast
Enthusiast

I can set the LOD level on Face instances:

 

// Summary:
// Returns a triangular mesh approximation to the face.
//
// Parameters:
// levelOfDetail:
// The level of detail. Its range is from 0 to 1. 0 is the lowest level of detail
// and 1 is the highest.
//
// Exceptions:
// T:Autodesk.Revit.Exceptions.ArgumentOutOfRangeException:
// Thrown when level of detail is less than 0 or greater than 1.
public Mesh Triangulate(double levelOfDetail);

 

But that will not give me any UV mapping information. For that I need to use ExportContext, and that way I will receive PolymeshTopology instances which are already tessellated and it doesn't seem like there is a way to set the LOD level for them.

 

How can I set the LOD level, get tessellated geometry, and also get UV mapping information?

0 Likes
821 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Dear Ehsan,

 

Thank you for your query.

 

Good question.

 

I fear that this functionality may not currently be in there. In that case, you will need to raise a wish for this in the Revit Idea Station and ensure it gets lots of votes.

 

However, I am checking with the development team for you to see if there is any other way.

 

Thank you for your patience.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 4

ebarMLN7G
Enthusiast
Enthusiast

Thanks Jeremy for following up on this. I will keep my fingers crossed! Certainly a critical need for us.

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Dear Ehsan,

 

Thank you for your patience and appreciation.

 

I am sorry to say that the development team cannot provide any immediate solution:

 

There were several discussions regarding overly complex customer workflows, such as exporting multiple times to only get a single element worth from each pass. I think that other teams ran into something similar. The issue of being able to control LOD better came up before. UVs are a slightly different matter, since old polymesh code is usually the obstacle.

 

It seems like there is some not insignificant work for this one.

 

Please file a wish list item on the Revit Ideas Station for now, if there is not one there already, and ensure that it gets many votes.

 

Thank you.

 

I guess the workaround would involve something like what they hint at above, exporting in multiple passes to obtain different bits and pieces in different LODs.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes