ThreeDFormat applies three-dimensional rendering to a shape: bevel edges, extrusion depth, material surface, contour colour, and scene-level camera and lighting. Access it via shape.three_d_format.
Package: aspose.slides_foss
ThreeDFormat
Properties — shape geometry (sp3d)
| Property | Type | Access | Description |
|---|
bevel_top | ShapeBevel | Read | Top bevel: type and dimensions of the top edge bevel. |
bevel_bottom | ShapeBevel | Read | Bottom bevel: type and dimensions of the bottom edge bevel. |
contour_width | float | Read/Write | Width of the 3D outline in points. |
extrusion_height | float | Read/Write | Extrusion depth in points (how far the shape extends in Z). |
depth | float | Read/Write | Z-offset of the shape from the slide plane, in points. |
contour_color | ColorFormat | Read | Colour of the 3D outline. Access contour_color.color to set the Color. |
extrusion_color | ColorFormat | Read | Colour of the extruded face. |
material | MaterialPresetType | Read/Write | Surface material preset: CLEAR, DK_EDGE, FLAT, MATTE, METAL, PLASTIC, POWDER, SOFT_EDGE, SOFTMETAL, TRANSLUCENT_POWDER, WARM_MATTE, LEGACY_MATTE, LEGACY_METAL, LEGACY_PLASTIC, LEGACY_WIREFRAME, NOT_DEFINED. |
Properties — scene (scene3d)
| Property | Type | Access | Description |
|---|
camera | Camera | Read | Scene camera settings (projection type and rotation). |
light_rig | LightRig | Read | Scene lighting preset and direction. |
ShapeBevel
Represents the bevel applied to one edge of a shape. Access via three_d_format.bevel_top or three_d_format.bevel_bottom.
Properties
| Property | Type | Access | Description |
|---|
bevel_type | BevelPresetType | Read/Write | Bevel shape: ANGLE, ART_DECO, CIRCLE, CONVEX, COOL_SLANT, CROSS, DIVOT, HARD_EDGE, RELAXED_INSET, RIBLET, SLOPE, SOFT_ROUND, NOT_DEFINED. |
width | float | Read/Write | Bevel width in points. |
height | float | Read/Write | Bevel height in points. |
Camera
Represents the viewpoint for the 3D scene. Access via three_d_format.camera.
Properties
| Property | Type | Access | Description |
|---|
camera_type | CameraPresetType | Read/Write | Preset camera: ISOMETRIC_BOTTOM_DOWN, ISOMETRIC_TOP_UP, OBLIQUE_BOTTOM_LEFT, PERSPECTIVE_FRONT, PERSPECTIVE_LEFT, PERSPECTIVE_RIGHT, PERSPECTIVE_RELAXED, PERSPECTIVE_RELAXED_MODERATELY, and many others. |
field_of_view_angle | float | Read/Write | Field-of-view angle in degrees (perspective cameras). |
zoom | float | Read/Write | Camera zoom factor as a percentage (100 = default). |
rotation | CameraRotation | Read | Rotation angles (latitude, longitude, revolution) in degrees. |
Methods
| Method | Signature | Description |
|---|
set_rotation | set_rotation(latitude, longitude, revolution) | Set explicit Euler rotation angles in degrees. |
LightRig
Represents the lighting environment for the 3D scene. Access via three_d_format.light_rig.
Properties
| Property | Type | Access | Description |
|---|
light_type | LightRigPresetType | Read/Write | Lighting preset: BALANCED, BRIGHT_ROOM, CHILLY, CONTRASTING, FLAT, FLOOD, FREEZING, GLOW, HARSH, LEGEND, MORNING, SOFT, SUNRISE, SUNSET, THREE_PT, TWO_PT. |
direction | LightingDirection | Read/Write | Direction of the dominant light: TOP, TOP_RIGHT, RIGHT, BOTTOM_RIGHT, BOTTOM, BOTTOM_LEFT, LEFT, TOP_LEFT. |
rotation | LightRigRotation | Read | Euler angles of the light rig. |
Methods
| Method | Signature | Description |
|---|
set_rotation | set_rotation(latitude, longitude, revolution) | Set explicit light-rig rotation angles in degrees. |
Usage Example
Raised circle with soft bevel and blue extrusion
See Also