NURBSurfaceModel#

class ansys.geometry.core.shapes.surfaces.nurbs.NURBSurfaceModel(/, **data: Any)#

Bases: pydantic.BaseModel

Pydantic model for NURBS surface curve data.

Notes

This model is used to validate the input data for creating a NURBS surface curve. It ensures that the required fields are present and have the correct types.

Overview#

model_config

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

type

degree_u

degree_v

knots_u

knots_v

control_points

weights

origin

reference

axis

Import detail#

from ansys.geometry.core.shapes.surfaces.nurbs import NURBSurfaceModel

Attribute detail#

NURBSurfaceModel.model_config#

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

NURBSurfaceModel.type: Literal['nurbs_surface'] = 'nurbs_surface'#
NURBSurfaceModel.degree_u: int = None#
NURBSurfaceModel.degree_v: int = None#
NURBSurfaceModel.knots_u: list[float]#
NURBSurfaceModel.knots_v: list[float]#
NURBSurfaceModel.control_points: list[tuple[float, float, float]] | None#
NURBSurfaceModel.weights: list[float] | None | None = None#
NURBSurfaceModel.origin: tuple[float, float, float] | None = None#
NURBSurfaceModel.reference: tuple[float, float, float] | None = None#
NURBSurfaceModel.axis: tuple[float, float, float] | None = None#