ansys.sherlock.core.types.layer_types.PolygonalShape#

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

Contains the properties for a polygonal shape.

Methods

PolygonalShape.construct([_fields_set])

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

Returns a copy of the model.

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

PolygonalShape.from_orm(obj)

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

PolygonalShape.model_construct([_fields_set])

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

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

!!! abstract "Usage Documentation"

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

!!! abstract "Usage Documentation"

PolygonalShape.model_dump_json(*[, indent, ...])

!!! abstract "Usage Documentation"

PolygonalShape.model_json_schema([by_alias, ...])

Generates a JSON schema for a model class.

PolygonalShape.model_parametrized_name(params)

Compute the class name for parametrizations of generic classes.

PolygonalShape.model_post_init(context, /)

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

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

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

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

Validate a pydantic model instance.

PolygonalShape.model_validate_json(json_data, *)

!!! abstract "Usage Documentation"

PolygonalShape.model_validate_strings(obj, *)

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

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

PolygonalShape.parse_obj(obj)

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

PolygonalShape.schema([by_alias, ref_template])

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

PolygonalShape.update_forward_refs(**localns)

PolygonalShape.validate(value)

Attributes

PolygonalShape.model_computed_fields

PolygonalShape.model_config

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

PolygonalShape.model_extra

Get extra fields set during validation.

PolygonalShape.model_fields

PolygonalShape.model_fields_set

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

PolygonalShape.points

list[tuple[float, float]]

PolygonalShape.rotation

float