Synopsis

PDX_MSGT dxcr_Ellipse(long option, MDA_PTR orig_db_ptr, double center[3], double majaxis[3], double minlen, double t0, double t1, double normal[3], int dxf_model, MDA_PTR *dxf_db_ptr)

Purpose

Creates a DXF ellipse.

Description

Creates a DXF ellipse entity in the specified model based on data provided. The data provided must result in a valid definition.

The orig_db_ptr argument should contain the database pointer of the entity that the new entity was created from (usually this should be obtained by the calling routine via mda_GetOrigDbptr) or MDA_NULL_PTR. See the mda_intro man page for more information about predecessor entities.

Input

option

Options (not used)

orig_db_ptr

The database pointer of the originating entity

center

The world XYZ center of the ellipse

majaxis

The major axis vector (length = maj radius)

minlen

Minor axis length (ratio of minor/major)

t0

The starting angle of the ellipse.

t1

The ending angle of the ellipse.

normal

Entities normal vector

dxf_model

The model for creating the DXF entity or entities

Output

dxf_db_ptr

The database pointer of the resulting DXF entity

Return

      DXCR_NOERR
      Low level error return
      .fi