### 6.5.2. Rosette

`class compolyx.Rosette`(graph, obj, parent=None)

Rosette class.

Access:

    >>> model = db.models['class40.1']
    >>> rosette_1 = model.rosettes['Rosette.1']
    >>> rosette_2 = model.create_rosette(name='Rosette.2', origin=(1.5, 5.75, 7.), dir1=(-0.4, -0.4, 0.8), dir2=(-6.0, 0.6, 0.75), rosette_type='parallel' )

`changed`

  Status boolean. Set to true if the underlying data has been changed. Write only property

`dir1`

  Direction 1 of the Rosette

`dir2`

  Direction 2 of the Rosette

`edge_set`

  Edge Set for Rosette

`enabled`

  Whether this object is currently enabled or not. SamplingPoints are always enabled.

`get_global_coordinates`(x, y, z)

  Evaluates the global coordinates of a point given in local coordinates: Rotation from local to global.

  CYLINDRICAL, RADIAL and SPERICAL coord sys type: Give phi and theta in RAD

  Parameters

  - x : local x direction (x for PARALLEL, r for CYLINDRICAL, RADIAL and SPERICAL)

  - y : local y direction (y for PARALLEL, phi for CYLINDRICAL, RADIAL and SPERICAL)

  - z : local z direction (z for PARALLEL, CYLINDRICAL, RADIAL and theta for SPERICAL)

  Usage

      >>> rosette.get_global_coordinates(1., 3., 4)

`local_direction`(point, angle)

  Get local orientation for a given relative angle and position in space

`locked`

  Rosette is generated from an imported rosette and cannot be changed.

`origin`

  Origin of the Rosette

`rosette_type`

  Rosette Types can be: spherical,edge_wise,cylindrical,parallel,radial

`serialize`()

  Serialize to Python string

`set_Xy`()

  sets dir2 orthogonal to dir1 as y- and x-axis

`set_Xz`()

  sets dir2 orthogonal to dir1 as z- and x-axis

`set_Yz`()

  sets dir2 orthogonal to dir1 as z- and y-axis

`set_xY`()

  sets dir1 orthogonal to dir2 as x- and y-axis

`set_xZ`()

  sets dir1 orthogonal to dir2 as x- and z-axis

`set_yZ`()

  sets dir1 orthogonal to dir2 as y- and z-axis

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