Is TessellatedShapeBuilder supported line segment?

Is TessellatedShapeBuilder supported line segment?

katsh7
Contributor Contributor
508 Views
4 Replies
Message 1 of 5

Is TessellatedShapeBuilder supported line segment?

katsh7
Contributor
Contributor

Hi,

I did google search as possible(end up this forum anyway :p), and probably seen all of the related Jeremmy's blog posts and still can't find the answer.

I managed to create a 3 points face(a triangle) and 4 points face(quad) and draw those geometry on the revit viewport applying arbitrarily materials by using TessellatedShapeBuilder and DirectShape.

But I really want to achieve now is to create "a line" material applied.

The reason why am I want to do is that I am making an addin that render some heat analysis results onto revit.
I have to draw lines with colors.

 

I am thinking a solution that draw a "narrow quad" to express line segments or curves, but it seems not a very good solution.

0 Likes
Accepted solutions (1)
509 Views
4 Replies
Replies (4)
Message 2 of 5

jeremytammik
Autodesk
Autodesk

I am asking the development team for you... hang on...

 



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

0 Likes
Message 3 of 5

katsh7
Contributor
Contributor

I appreciate it.

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk
Accepted solution

The development team replied:

  

No, it is intended for faces, not lines.

  

Sorry.

 

You might be better off using model lines rather than thin faces. I suggest you try both and benchmark your results.

 

Please let us know how you end up solving this. Thank you!

 



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

0 Likes
Message 5 of 5

katsh7
Contributor
Contributor

First of all, I appreciate your efforts.
I understand.

"Model line" is a good idea(I believe you mean model line as wireframe of the model).
I realize that I can represent  a contour and a vector by model lines. Line segment is not an only way to do that.  

I will post the result but it will take a while, maybe around Jan. 2020.

Again, Thank you. 

0 Likes