ansys.sherlock.core.types.layer_types.RectangularShape#

class ansys.sherlock.core.types.layer_types.RectangularShape(**data)#

Contains the properties for a rectangular shape.

Methods

RectangularShape.construct([_fields_set])

RectangularShape.copy(*[, include, exclude, ...])

Returns a copy of the model.

RectangularShape.dict(*[, include, exclude, ...])

RectangularShape.from_orm(obj)

RectangularShape.json(*[, include, exclude, ...])

RectangularShape.model_construct([_fields_set])

Creates a new instance of the Model class with validated data.

RectangularShape.model_copy(*[, update, deep])

!!! abstract "Usage Documentation"

RectangularShape.model_dump(*[, mode, ...])

!!! abstract "Usage Documentation"

RectangularShape.model_dump_json(*[, ...])

!!! abstract "Usage Documentation"

RectangularShape.model_json_schema([...])

Generates a JSON schema for a model class.

RectangularShape.model_parametrized_name(params)

Compute the class name for parametrizations of generic classes.

RectangularShape.model_post_init(context, /)

Override this method to perform additional initialization after __init__ and model_construct.

RectangularShape.model_rebuild(*[, force, ...])

Try to rebuild the pydantic-core schema for the model.

RectangularShape.model_validate(obj, *[, ...])

Validate a pydantic model instance.

RectangularShape.model_validate_json(...[, ...])

!!! abstract "Usage Documentation"

RectangularShape.model_validate_strings(obj, *)

Validate the given object with string data against the Pydantic model.

RectangularShape.parse_file(path, *[, ...])

RectangularShape.parse_obj(obj)

RectangularShape.parse_raw(b, *[, ...])

RectangularShape.schema([by_alias, ref_template])

RectangularShape.schema_json(*[, by_alias, ...])

RectangularShape.update_forward_refs(**localns)

RectangularShape.validate(value)

Attributes

RectangularShape.model_computed_fields

RectangularShape.model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

RectangularShape.model_extra

Get extra fields set during validation.

RectangularShape.model_fields

RectangularShape.model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

RectangularShape.length

float

RectangularShape.width

float

RectangularShape.center_x

float

RectangularShape.center_y

float

RectangularShape.rotation

float