VegaRise.NET
Back to DOM

Shape3DTypeClass

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Represents the 3D surface properties (bevel, material, contour) applied to a shape or text effect.

Remarks

is the shape-side counterpart of and is primarily used inside a to give a graphical element (a shape, icon, or text body) a three-dimensional appearance. It defines the top bevel, the material preset that controls how lighting interacts with the surface, the contour (edge outline) width, and the contour color. Shape3DType !:Effect3D Scene3D The class is intentionally lighter than : it focuses on the shape's intrinsic 3D surface properties, while camera and lighting are configured on and . !:Effect3D Camera LightRig

Examples

csharp
1// 1. Metallic rectangle with a bevel
2var shape3D = new Shape3DType
3{
4 Material = PresetMaterialTypeValues.Metal,
5 ContourWidth = 2,
6 ContourColor = Color.Black,
7 BevelTop = new Bevel { Width = 4, Height = 2, PresetProfileType = BevelPresetTypeValues.Slope }
8};
9
csharp
1// 2. Warm matte plastic
2var shape3D = new Shape3DType
3{
4 Material = PresetMaterialTypeValues.WarmMatte,
5 ContourWidth = 1,
6 ContourColor = Color.Gray
7};
8
csharp
1// 3. Soft rounded bevel with no contour
2var shape3D = new Shape3DType
3{
4 Material = PresetMaterialTypeValues.SoftEdge,
5 ContourWidth = 0,
6 BevelTop = new Bevel { Width = 6, Height = 6, PresetProfileType = BevelPresetTypeValues.SoftRound }
7};
8
csharp
1// 4. Attach to a shape's 3D effect style
2var shape = new Shape { Type = ShapeType.Rectangle };
3shape.Fill = new Fill { SolidFill = Color.LightBlue };
4// Bind shape3D through the parent Scene3D or EffectStyle.
5

Properties

BevelTopIBevel

Gets or sets the bevel applied to the top face of the shape.

ContourColorColor

Gets or sets the color of the contour edge.

ContourWidthint

Gets or sets the width of the contour (edge outline) drawn around the 3D surface.

Gets or sets the material preset used to shade the 3D surface.

VegaRiseVDocs.NET

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in