# Synopsis

PDX_MSGT picr_Loop(long option, int model, MDA_PTR orig_db_ptr, int tag, int identifier, MDA_COUNT n_fins, MDA_PTR *fins, MDA_PTR vertex, int is_isolated, int loop_type, MDA_PTR *loop_ptr)

# Purpose

Create the PINT model Loop entity.

# Description

This function creates a PINT Loop entity for the given input data. 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

### PICR_VALIDATE

Validate the entity fields

### PICR_NOVALIDATE

Do not validate the entity fields

## model

PINT model for entity creation

## identifier

Parasolid's identifier

## orig_db_ptr

The original entities orig_db_ptr as obtained from the mda_GetOrigDbptr call, or MDA_NULL_PTR

## tag

Parasolid tag for this entity

## n_fins

number of fins in the loop

## fins

list of MDA_PTRs to region entities

## vertex

MDA_PTR to vertex entity

## is_isolated

### PINT_TRUE

The loop consists of zero fins and one vertex

### PINT_FALSE

The loop consists of fins

## loop_type

### PINT_LOOP_HOLE

### PINT_LOOP_PERIPHERAL

### PINT_LOOP_OTHER

# Output

## loop_ptr

The PINT model pointer

# Return

          Low level error return
          .fi