Table of Contents

Interface ISurfaceOfExtrusion

Namespace
CADability.GeoObject
Assembly
CADability.dll

Interface of an extrusion surface. All surfaces, that can be interpreted as an extrusion should implement this interface

public interface ISurfaceOfExtrusion

Properties

ExtrudedCurve

The curve, which is moved along the axis, e.g. an arc, when this is a CylindricalSurface

ICurve ExtrudedCurve { get; }

Property Value

ICurve

ExtrusionDirectionIsV

The direction of extrusion is the v-parameter of the surface (when false, it is the u-parameter)

bool ExtrusionDirectionIsV { get; }

Property Value

bool

Orientation

Reserved for an orientation along the axis of extrusion: an object which provides for each parameter of the axis a direction perpendicular to it (see OrientationAt(double)), as needed for sweeps along a curved axis. Currently none of the implementing surfaces provides it (CylindricalSurface and ToroidalSurface throw NotImplementedException), so callers cannot rely on it.

IOrientation Orientation { get; }

Property Value

IOrientation

Methods

Axis(BoundingRect)

The axis of extrusion. The axis must start at the bottom of the domain and go up to the top of the domain (or left and right, depending on ExtrusionDirectionIsV).

ICurve Axis(BoundingRect domain)

Parameters

domain BoundingRect

Returns

ICurve

ModifyAxis(GeoPoint)

Modify the axis to make it pass the provided throughPoint (and stay parallel to the original axis)

bool ModifyAxis(GeoPoint throughPoint)

Parameters

throughPoint GeoPoint

Returns

bool

true, when possible