Synopsis

PDX_MSGT dxcr_PolyfaceMesh(long option, MDA_PTR orig_db_ptr, long num_pts, MTH_3DPNT *pts, long num_polys, long *num_ppts, long **ppts, int dxf_model, MDA_PTR *dxf_db_ptr)

Purpose

Creates a DXF polyface mesh.

Description

A DXF polyface mesh entity is created 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.

This will not create the extruded form of the Polygon Mesh. If you want to extrude it, you will need to change the normal field of this entity to be something other than 0,0,1.

Input

option

Options (not used)

orig_db_ptr

The database pointer of the originating entity

num_pts

Number of polyline points

pts

Array of polyline points

num_polys

Number of polygons

num_ppts

Number of polygon points

ppts

Polygon points

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