---
name: "plfill3"
section: "3plplot"
platform: "linux"
package: "plplot-doc"
version: "5.15.0+dfsg2-15"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/plfill3"
---

# plfill3(3plplot)

Draw filled polygon in 3D

## NAME

**plfill3** - Draw filled polygon in 3D

## SYNOPSIS

**plfill3**(*n*, *x*, *y*, *z*)

## DESCRIPTION

Fills the 3D polygon defined by the *n* points in the *x*, *y*, and *z* vectors using the pattern defined by [**plpsty**(3plplot)](/plpsty/3plplot.md) or [**plpat**(3plplot)](/plpat/3plplot.md).  The routine will automatically close the polygon between the last and first vertices.  If multiple closed polygons are passed in *x*, *y*, and *z* then [**plfill3**(3plplot)](/plfill3/3plplot.md) will fill in between them.

Redacted form: General: **plfill3(x, y, z)**

This function is used in example 15.

## ARGUMENTS

- *n* (**PLINT**(3plplot), input)

  Number of vertices in polygon.

- *x* (**PLFLT\_VECTOR**(3plplot), input)

  A vector containing the x coordinates of vertices.

- *y* (**PLFLT\_VECTOR**(3plplot), input)

  A vector containing the y coordinates of vertices.

- *z* (**PLFLT\_VECTOR**(3plplot), input)

  A vector containing the z coordinates of vertices.

## AUTHORS

Many developers (who are credited at http://plplot.org/credits.php) have contributed to PLplot over its long history.

## SEE ALSO

PLplot documentation at http://plplot.org/documentation.php.
