PolygonalCylinder

Concrete subclass of GenericCylinder representing a cylinder with a polygonal cross section.

Contents

Description

PolygonalCylinder is a Shape for a cylinder whose cross section is a polygon. It is assumed that the polygon is convex and the mean of its vertices is inside the polygon. The axis of the cylinder should be aligned with one of the axes of the Cartesian coordinate system.

Construction

shape = PolygonalCylinder(normal_axis, height, normal_center, point_array)
shape = PolygonalCylinder(normal_axis, height, normal_center, point_array, dl_max)

Input Arguments

Example

% Create an instance of SectoralCylinder.
shape = PolygonalCylinder(Axis.z, 100, 50, [0 0; 50 0; 25 25*sqrt(3)]);  % cross section is regular triangle
% Use the constructed shape in maxwell_run().
[E, H] = maxwell_run({INITIAL ARGUMENTS}, 'OBJ', {'vacuum', 'none', 1.0}, shape, {REMAINING ARGUMENTS});

See Also

CircularCylinder, EllipticCylinder, SectoralCylinder, Shape, maxwell_run