TOC PREV NEXT INDEX

Read_Polygon

Synopsis

reads in polygon-oriented CAD/CAM geometry formats such as OBJ, PLY, and VTK

Input Port

ui_parent

user interface parent object

Parameters

Read Filename

UIfileSB

pick file to input

Output Port

field

Mesh + Cell_Set

Description

Read_Polygon reads in files in OBJ, PLY or VTK format and out puts the data in a mesh.
An OBJ file is a Wavefront Advanced Visualizer Object File. This reader accepts a subset of the OBJ format. It processes v, f, and g commands. It can also process usemtl and mtllib commands, but only uses the diffuse color ('Kd'). DVread_polygon can read f commands that include normal and texture information, but the normal/texture information is not used.

PLY represents a Stanford Polygon File. This reader accepts a subset of the PLY format. The files must be ASCII format and it only understands basic properties such as vertex x,y,z and face vertex indicies.

Read_Polygon reads ASCII VTK (Visualization ToolKit) files, with the following restrictions. The dataset must be either POLYDATA or UNSTRUCTURED_GRID. If its a POLYDATA dataset, then the points must be followed by either LINES or POLYGONS. The POINTS must be broken up into lines no longer than 1024 characters each. The face index information for each line or polygon must be on a single line (usually the case but not always). If its a UNSTRUCTURED_GRID dataset, then only cells of type line, tri, polygon, pixel, and quad.

Input

ui_parent

A port to connect to a user interface object that contains the macro's widgets. By default, it is connected to the default user interface object in the application in which the macro is instanced. (This default connection is not drawn.).

Parameters

Read Filename

File browser. Selects the disk file to input and convert.

Output Port

field

The output is an unstructured mesh containing polygon cell sets. If color information is in the file, cell data will be added to the mesh.

out_obj

A renderable version of the output field.

Example

Not available

File

v/modules.v

See also related modules

Read_Triangle


TOC PREV NEXT INDEX