Set color of subdmesh faces/verts using .net?

Set color of subdmesh faces/verts using .net?

JamesMaeding
Advisor Advisor
533 Views
1 Reply
Message 1 of 2

Set color of subdmesh faces/verts using .net?

JamesMaeding
Advisor
Advisor

I have realized that using a subdmesh is way way faster than 3d faces for a tin surface.

I have things working nicely now to create the mesh, but have only seen this post on setting colors:

http://adndevblog.typepad.com/autocad/2013/09/vertex-color-for-a-subdmesh.html

 

It uses the AcDbSubDMesh::setVertexColorArray method, which I do not see for .net.

I do see SetSubentColor(Autodesk.AutoCAD.DatabaseServices.SubentityId, Autodesk.AutoCAD.Colors.Color),

but I have never dealt with the subentities of a mesh.

 

I would guess if I don't have a setcolorarray method, I must do each vertex color one by one.

That is no problem, but checking if there is a better way in .net.

thanks

 


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes
534 Views
1 Reply
Reply (1)
Message 2 of 2

JamesMaeding
Advisor
Advisor

duh, just saw property VertexColorArray.

was too focused on the set methods...


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

0 Likes