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:
untrimmed_surface (Surface)
outer_boundary (CompositeCurve3D)
outer_boundary_para (CompositeCurve3D)
outer_curve_on_parametric_surf_para (CurveOnParametricSurface)
inner_boundaries (List[CompositeCurve3D] or None)
inner_boundaries_para (List[CurveOnParametricSurface] or None)
name (str) – Name of the geometric object. May be re-assigned a unique name when added to a
GeometryContainerconstruction (bool) – Whether this is a geometry used only for construction of other geometries. If
True, this geometry will not be exported or plotted. Default:False
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:
plot –
pyvista.PlotterinstanceNt (int) – Number of points to evaluate on each boundary curve. Default:
100mesh_kwargs – Keyword arguments to pass to
pyvista.Plotter.add_mesh
- Returns:
The evaluated rational Bézier surface
- Return type:
- to_iges(*args, **kwargs) List[IGESEntity][source]#
Converts the geometric object to an IGES entity. To add this IGES entity to an
.igsfile, use anIGESGenerator.
- 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: