Brep entity drawing is optimized, so you need to recompile the entity after changing any face color.
myBrep.Faces[5].Color = Color.Red;
myBrep.RegenMode = regenType.CompileOnly;
myBrep.Compile(new CompileParams(design1));
design1.Invalidate();
Brep entity drawing is optimized, so you need to recompile the entity after changing any face color.
myBrep.Faces[5].Color = Color.Red;
myBrep.RegenMode = regenType.CompileOnly;
myBrep.Compile(new CompileParams(design1));
design1.Invalidate();
Comments
how define design1?
Hi Yaakov,
design1 is the main Eyeshot control in this case.
can you show me sample how declere it?
i use ViewportLayout and i cant find the way to create this "compileParams"
What Eyeshot version are you using? What constructors does your CompileParams class support?
Ultimate 2020
control its ViewportLayout and i use Brep
that was create from Region
and i add it as entity to Block by Block Refernce
Please sign in to leave a comment.