<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>gluPwlCurve</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GLU.xml" title="GLU"/><link rel="previous" href="gluProject.3G.xml" title="gluProject"/><link rel="next" href="gluQuadricCallback.3G.xml" title="gluQuadricCallback"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">gluPwlCurve</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="gluProject.3G.xml">Prev</a> </td><th width="60%" align="center">GLU</th><td width="20%" align="right"> <a accesskey="n" href="gluQuadricCallback.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="gluPwlCurve.3G"/><div class="titlepage"/><div class="refnamediv"><a name="gluPwlCurve.3G-name"/><h2>Name</h2><p>gluPwlCurve &#8212; describe a piecewise linear NURBS trimming curve</p></div><div class="refsynopsisdiv"><a name="gluPwlCurve.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>gluPwlCurve</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLUnurbs* <i><tt>nurb</tt></i>, GLint <i><tt>count</tt></i>, GLfloat* <i><tt>data</tt></i>, GLint <i><tt>stride</tt></i>, GLenum <i><tt>type</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="gluPwlCurve.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>gluPwlCurve</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>nurb</tt></i>, <i><tt>data</tt></i>, <i><tt>type</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="gluPwlCurve.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>nurb</tt></i></span></dt><dd>
						Specifies the NURBS object (created with <a href="gluNewNurbsRenderer.3G.xml"><tt>gluNewNurbsRenderer</tt></a>).
					</dd><dt><span class="term"><i><tt>count</tt></i></span></dt><dd>
						Specifies the number of points on the curve.
					</dd><dt><span class="term"><i><tt>data</tt></i></span></dt><dd>
						Specifies an array containing the curve points.
					</dd><dt><span class="term"><i><tt>stride</tt></i></span></dt><dd>
						Specifies the offset (a number of single-precision floating-point values) between points on the curve.
					</dd><dt><span class="term"><i><tt>type</tt></i></span></dt><dd>
						Specifies the type of curve. Must be either <tt>GLU_MAP1_TRIM_2</tt> or
						<tt>GLU_MAP1_TRIM_3</tt>.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="gluPwlCurve.3G-description"/><h2>Description</h2><p>
			<tt>gluPwlCurve</tt> describes a piecewise linear trimming curve for a NURBS surface. A piecewise linear
			curve consists of a list of coordinates of points in the parameter space for the NURBS surface to be trimmed. These
			points are connected with line segments to form a curve. If the curve is an approximation to a curve that is not
			piecewise linear, the points should be close enough in parameter space that the resulting path appears curved at the
			resolution used in the application.
		</p><p>
			If <i><tt>type</tt></i> is <tt>GLU_MAP1_TRIM_2</tt>, then it describes a curve in two-dimensional
			(<i><tt>u</tt></i> and <i><tt>v</tt></i>) parameter space. If it is <tt>GLU_MAP1_TRIM_3</tt>,
			then it describes a curve in two-dimensional homogeneous (<i><tt>u</tt></i>, <i><tt>v</tt></i>, and
			<i><tt>w</tt></i>) parameter space. See the <a href="gluBeginTrim.3G.xml"><tt>gluBeginTrim</tt></a> reference page
			for more information about trimming curves.
		</p></div><div class="refsect1" lang="en"><a name="gluPwlCurve.3G-notes"/><h2>Notes</h2><p>
			To describe a trim curve that closely follows the contours of a NURBS surface, call <a href="gluNurbsCurve.3G.xml"><tt>gluNurbsCurve</tt></a>.
		</p></div><div class="refsect1" lang="en"><a name="gluPwlCurve.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="gluBeginCurve.3G.xml">gluBeginCurve</a>, <a href="gluBeginTrim.3G.xml">gluBeginTrim</a>, <a href="gluNewNurbsRenderer.3G.xml">gluNewNurbsRenderer</a>, <a href="gluNurbsCurve.3G.xml">gluNurbsCurve</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="gluProject.3G.xml">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-GLU.xml">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="gluQuadricCallback.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gluProject </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> gluQuadricCallback</td></tr></table></div></body></html>