### 6.8.2. View

`class compolyx.View`(name, position=(0.0, 0.0, 0.0), orientation=(0.0, 0.0, 0.0), rotation_point=(0.0, 0.0, 0.0), parallel_scale=1.0, projection='perspective', locked=False, parent=None)

ComPoLyX class to capture view properties.

Access:

    >>> import compolyx
    >>> db = compolyx.DB()
    >>> view1 = db.create_view(name='View.1', position=[1.5, 5.75, 7.], orientation=[-0.4, -0.4, 0.8], rotation_point=[-6.0, 0.6, 0.75], projection='perspective')

`locked`

  A View which is imported from an other source can not be modified.

`orientation`

  Get/set the view orientation

`parallel_scale`

  Get/set the view parallel perspective scale factor.

`position`

  Get/set the view position

`projection`

  Get/set the projection method parallel or perspective

`rotation_point`

  Get/set the view rotation point.

`serialize`()

  Serialize to Python string

Release 18.2 - © ANSYS, Inc. All rights reserved.