Class Pdf3DRenderStyle
Specifies the available rendering style of the 3D artwork.
Inheritance
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public sealed class Pdf3DRenderStyle : Enum
Examples
//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page .
PdfPage page = document.Pages.Add();
//Create a new Pdf3D Annotation.
Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d");
//Create a new Pdf3DRendermode.
Pdf3DRendermode renderMode = new Pdf3DRendermode();
renderMode.Style = Pdf3DRenderStyle.Solid;
renderMode.AuxilaryColor = new PdfColor(Color.Green);
renderMode.FaceColor = new PdfColor(Color.Black);
renderMode.CreaseValue = 10f;
//Create a new Pdf3DView
Pdf3DView view = new Pdf3DView();
view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f };
view.RenderMode = renderMode;
annotation.Views.Add(view);
page.Annotations.Add(annotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page .
Dim page As PdfPage = document.Pages.Add()
'Create a new Pdf3D Annotation.
Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d")
'Create a new Pdf3DRendermode.
Dim renderMode As New Pdf3DRendermode()
renderMode.Style = Pdf3DRenderStyle.Solid
renderMode.AuxilaryColor = New PdfColor(Color.Green)
renderMode.FaceColor = New PdfColor(Color.Black)
renderMode.CreaseValue = 10f
'Create a new Pdf3DView
Dim view As New Pdf3DView()
view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F}
view.RenderMode = renderMode
annotation.Views.Add(view)
page.Annotations.Add(annotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)
Fields
BoundingBox
Displays the bounding box edges of each node, aligned with the axes of the local coordinate space for that node.
Declaration
public const Pdf3DRenderStyle BoundingBox
Field Value
Type |
---|
Pdf3DRenderStyle |
HiddenWireframe
Displays edges in a single color, though removes back-facing and obscured edges.
Declaration
public const Pdf3DRenderStyle HiddenWireframe
Field Value
Type |
---|
Pdf3DRenderStyle |
Illustration
Displays silhouette edges with surfaces, removes obscured lines.
Declaration
public const Pdf3DRenderStyle Illustration
Field Value
Type |
---|
Pdf3DRenderStyle |
ShadedIllustration
Displays silhouette edges with lit and textured surfaces and an additional emissive term to remove poorly lit areas of the artwork.
Declaration
public const Pdf3DRenderStyle ShadedIllustration
Field Value
Type |
---|
Pdf3DRenderStyle |
ShadedVertices
Displays only vertices, though uses their vertex color and applies lighting.
Declaration
public const Pdf3DRenderStyle ShadedVertices
Field Value
Type |
---|
Pdf3DRenderStyle |
ShadedWireframe
Displays only edges, though interpolates their color between their two vertices and applies lighting.
Declaration
public const Pdf3DRenderStyle ShadedWireframe
Field Value
Type |
---|
Pdf3DRenderStyle |
Solid
Displays textured and lit geometric shapes. In the case of artwork that conforms to the Universal 3D File Format specification, these shapes are triangles.
Declaration
public const Pdf3DRenderStyle Solid
Field Value
Type |
---|
Pdf3DRenderStyle |
SolidOutline
Displays silhouette edges with lit and textured surfaces, removes obscured lines.
Declaration
public const Pdf3DRenderStyle SolidOutline
Field Value
Type |
---|
Pdf3DRenderStyle |
SolidWireframe
Displays textured and lit geometric shapes (triangles) with single color edges on top of them.
Declaration
public const Pdf3DRenderStyle SolidWireframe
Field Value
Type |
---|
Pdf3DRenderStyle |
Transparent
Displays textured and lit geometric shapes (triangles) with an added level of transparency.
Declaration
public const Pdf3DRenderStyle Transparent
Field Value
Type |
---|
Pdf3DRenderStyle |
TransparentBoundingBox
Displays bounding boxes faces of each node, aligned with the axes of the local coordinate space for that node, with an added level of transparency.
Declaration
public const Pdf3DRenderStyle TransparentBoundingBox
Field Value
Type |
---|
Pdf3DRenderStyle |
TransparentBoundingBoxOutline
Displays bounding boxes edges and faces of each node, aligned with the axes of the local coordinate space for that node, with an added level of transparency.
Declaration
public const Pdf3DRenderStyle TransparentBoundingBoxOutline
Field Value
Type |
---|
Pdf3DRenderStyle |
TransparentWireframe
Displays textured and lit geometric shapes (triangles) with an added level of transparency, with single color opaque edges on top of it.
Declaration
public const Pdf3DRenderStyle TransparentWireframe
Field Value
Type |
---|
Pdf3DRenderStyle |
Vertices
Displays only vertices in a single color.
Declaration
public const Pdf3DRenderStyle Vertices
Field Value
Type |
---|
Pdf3DRenderStyle |
Wireframe
Displays only edges in a single color.
Declaration
public const Pdf3DRenderStyle Wireframe
Field Value
Type |
---|
Pdf3DRenderStyle |