observer_point property

observer_point property

Gets or sets the observer point.

Example

Sets up observation point to perform export of custom view of a drawing

from aspose import pycore
from aspose.cad import Image
from aspose.cad.fileformats import ObserverPoint
from aspose.cad.fileformats.cad import CadImage
from aspose.cad.imageoptions import CadRasterizationOptions, JpegOptions

with pycore.cast(CadImage, Image.load(GetPath(fileName))) as cadImage:
    options = JpegOptions()
    rasterizationOptions = CadRasterizationOptions()
    rasterizationOptions.page_width = 1500
    rasterizationOptions.page_height = 1500
    xAngle = 10
    yAngle = 20
    zAngle = 30
    rasterizationOptions.observer_point = ObserverPoint(xAngle, yAngle, zAngle)
    options.vector_rasterization_options = rasterizationOptions
    cadImage.save(outFile, options)

Definition:

@property
def observer_point(self):
    ...
@observer_point.setter
def observer_point(self, value):
    ...

See Also