> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpticalPropertiesGeometry Class Reference

Represents interface for editing optical properties geometries.

Inheritance diagram for OpticalPropertiesGeometry:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/speos/speos-nx-library/2025-r2/class_speos_n_x__2412_1_1_optical_properties_geometry.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=c9634b330779684514fe15fb2e6787cf)

## Public Member Functions

| Type | Name |
| - | - |
| 'None' | [Add](#ab437b6f556464b59bf1f8cbb621b3724) (self, tag) Adds a geometry. |
| 'None' | [Remove](#ae5875ad27243653f6c314b4a8fa08a29) (self, tag) Removes a feature. |
|  'None' | **Clear** (self) Clear all geometries. |
| 'None' | [RevertGeometry](#a2add14ab3d65e3810d3168c915abf044) (self, tag) Reverts a geometry. |

## Static Public Attributes

| Type | Name |
| - | - |
| str | [Direction](#ad76e035987615d35ecd3af7e47e44d99) = property(fset=\_\_SetDirection) Sets a direction for a certain geometry. |
| str | [GeometryList](#a64347863a6b1517e3f4477cb11bc1ae9) = property(fget=\_\_GetGeometryList, fset=\_\_SetGeometryList) Gets or sets the geometries. |

## Properties

| Type | Name |
| - | - |
| | **thisown** = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |

## Detailed Description

Represents interface for editing optical properties geometries.

This interface is used to edit geometries on which the optical properties are applied.

To create a new instance of this class, use COpticalPropertiesBuilder::GetOpticalPropertiesGeometry

## Member Function Documentation

### Add()

```python theme={null}
'None' Add(
    self,
    tag
)
```

Adds a geometry.

The Add function takes a geometry tag.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | tag | Integer. |

### Remove()

```python theme={null}
'None' Remove(
    self,
    tag
)
```

Removes a feature.

The Remove function takes a geometry tag.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | tag | Integer. |

### RevertGeometry()

```python theme={null}
'None' RevertGeometry(
    self,
    tag
)
```

Reverts a geometry.

The RevertFace function takes a feature tag.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | tag | : Integer. |

## Member Data Documentation

### Direction

```python theme={null}
str Direction = property(fset=__SetDirection)
```

`static`

Sets a direction for a certain geometry.

The SetDirection function takes a feature tag as the first parameter.\
&#x20;The function changes the direction of a geometry.\


The reverse direction depends of the value parameter:\
&#x20;0 - Does not reverse the direction.\
&#x20;1 - Reverses the direction.

**Parameters**

| Direction | Name | Description |
| - | - | - |
| \[in] | tag | : Integer. |
| \[in] | value | : Integer. |

### GeometryList

```python theme={null}
str GeometryList = property(fget=__GetGeometryList, fset=__SetGeometryList)
```

`static`

Gets or sets the geometries.

The GeometryList property takes and returns a list of feature tag.\


**Value type**: List of integer.

The default value is an empty list.

The documentation for this class was generated from the following file:

* **SpeosNX\_2412.py**
