Article | 60001637 |
Type | Wish |
Product | Engine |
Version | 6021 |
Date Added | 3/8/2012 |
Fixed | Yes [3/8/2012] |
Submitted by | Alessio |
Keywords |
In 6022 a new property SectionClipCoverFacesColor of vdGlobalRenderProperties object added.
Default value is Color.Empty in order the active PolyFace color to be used.
Example in C#:
//add a blue sphere with radius 3 and center 0,0,0
doc.ActivePenColor = new vdColor(Color.Blue);
doc.CommandAction.CmdSphere(new gPoint(0, 0, 0), 3.0, 15, 15);
//add a new section clip
vdSectionClip clip = new vdSectionClip();
clip.Name = "Section_1";
clip.OriginPoint = new gPoint(0,0,0);
clip.Direction = new Vector(0,0,-1);//visible side of drawing
clip.Enable = true;
doc.ActiveLayOut.Sections.AddItem(clip);
//enable to cover the section of polyfaces with filled regions
doc.GlobalRenderProperties.SectionClipCoverFaces = true;
//set the color of filled region to be Green
doc.GlobalRenderProperties.SectionClipCoverFacesColor = Color.Green;
//render 3d scene
doc.CommandAction.View3D("SHADEON");