aerocaps.geom.surfaces.TrimmedSurface#

class TrimmedSurface(untrimmed_surface: Surface, outer_boundary: CompositeCurve3D, outer_boundary_para: CompositeCurve3D, outer_curve_on_parametric_surf_para: CurveOnParametricSurface, inner_boundaries: List[CompositeCurve3D] = None, inner_boundaries_para: List[CurveOnParametricSurface] = None, name: str = 'TrimmedSurface', construction: bool = False)[source]#

Bases: Surface

__init__(untrimmed_surface: Surface, outer_boundary: CompositeCurve3D, outer_boundary_para: CompositeCurve3D, outer_curve_on_parametric_surf_para: CurveOnParametricSurface, inner_boundaries: List[CompositeCurve3D] = None, inner_boundaries_para: List[CurveOnParametricSurface] = None, name: str = 'TrimmedSurface', construction: bool = False)[source]#
Parameters:

Methods

evaluate(Nt)

from_planar_boundary_curves(outer_boundary)

plot_surface(plot[, Nt])

Plots the trimmed surface using the pyvista library

to_iges(*args, **kwargs)

Converts the geometric object to an IGES entity.

transform(**transformation_kwargs)

Creates a transformed copy of the surface by transforming both the outer boundary in geometric space and the untrimmed surface.

Attributes

plot_surface(plot: Plotter, Nt: int = 100, **mesh_kwargs)[source]#

Plots the trimmed surface using the pyvista library

Parameters:
Returns:

The evaluated rational Bézier surface

Return type:

pyvista.core.pointset.StructuredGrid

to_iges(*args, **kwargs) List[IGESEntity][source]#

Converts the geometric object to an IGES entity. To add this IGES entity to an .igs file, use an IGESGenerator.

transform(**transformation_kwargs) TrimmedSurface[source]#

Creates a transformed copy of the surface by transforming both the outer boundary in geometric space and the untrimmed surface. The parameteric trimming curves are left unmodified.

Parameters:

transformation_kwargs – Keyword arguments passed to Transformation3D

Returns:

Transformed surface

Return type:

TrimmedSurface