Search found 2 matches
- Thu Jan 09, 2025 2:24 pm
- Forum: DG Kernel discussions
- Topic: Changing colour of mesh face and mesh wireframe
- Replies: 8
- Views: 976
Re: Changing colour of mesh face and mesh wireframe
OK, helpful thank you. I was able to produce a similar example. 1) Use IMeshAlgor to add vertex points. 2) Use IMeshShading_KC to setShadingType and then update color for each vertex using SetVertexColor 3) Use IMeshTopol to add simplex from the verticies using AddSimplex So that works but I have to...
- Wed Jan 08, 2025 9:00 pm
- Forum: DG Kernel discussions
- Topic: Changing colour of mesh face and mesh wireframe
- Replies: 8
- Views: 976
Re: Changing colour of mesh face and mesh wireframe
Prashant, can you post a code snippet showing how to set the vertex color? I am using 32-bit ocx. Using IMeshAlgor to create vertexes and IMeshTopol to create simplices. How can I set the color of each vertex in the mesh? I think I need to use IMeshShading_KC but so far I have not gotten the expecte...