NURBSCurveModel#

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

Bases: pydantic.BaseModel

Pydantic model for NURBS curve data.

Notes

Pure data model — no file I/O. All orchestration (reading the JSON, building the geometry) lives in NURBSCurve.from_json_file / NURBSCurve.to_json_file.

Overview#

effective_weights

Weights to use, defaulting to all-1.0 if not provided.

Import detail#

from ansys.geometry.core.shapes.curves.nurbs import NURBSCurveModel

Attribute detail#

NURBSCurveModel.type: Literal['nurbs_curve'] = 'nurbs_curve'#
NURBSCurveModel.degree: int = None#
NURBSCurveModel.knots: list[float]#
NURBSCurveModel.control_points: list[tuple[float, float, float]]#
NURBSCurveModel.weights: list[float] | None = None#

Method detail#

NURBSCurveModel.effective_weights() list[float]#

Weights to use, defaulting to all-1.0 if not provided.