<commit_before><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<base href="../../../" />
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
	</head>
	<body>
		[page:Curve] &rarr;

		<h1>[name]</h1>

		<div class="desc">Create a smooth 3d spline curve from a series of points using the
			[link:https://en.wikipedia.org/wiki/Centripetal_Catmull-Rom_spline Catmull-Rom] algorithm.</div>

		<h2>Example</h2>

<code>
//Create a closed wavey loop
var curve = new THREE.CatmullRomCurve3( [
	new THREE.Vector3( -10, 0, 10 ),
	new THREE.Vector3( -5, 5, 5 ),
	new THREE.Vector3( 0, 0, 0 ),
	new THREE.Vector3( 5, -5, 5 ),
	new THREE.Vector3( 10, 0, 10 )
] );

var geometry = new THREE.Geometry();
geometry.vertices = curve.getPoints( 50 );

var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );

// Create the final object to add to the scene
var curveObject = new THREE.Line( geometry, material );
</code>

		<h3>[example:webgl_geometry_extrude_splines geometry / extrude / splines]</h3>


		<h2>Constructor</h2>

		<h3>[name]( [page:Array points] )</h3>
		<div>points – An array of [page:Vector3] points</div>




		<h2>Properties</h2>
		<div>See the base [page:Curve] class for common properties.</div>

		<h3>[property:Boolean isCatmullRomCurve3]</h3>
		<div>
			Used to check whether this or derived classes are CatmullRomCurve3s. Default is *true*.<br /><br />

			You should not change this, as it used internally for optimisation.
		</div>

		<h3>[property:Array points]</h3>
		<div>The array of array of [page:Vector3] points that define the curve.</div>

		<h3>[property:Boolean closed]</h3>
		<div>The curve will loop back onto itself when this is true. False by default</div>

		<h3>[property:String cureType]</h3>
		<div>Possible values are `centripetal` (default), `chordal` and `catmullrom`.</div>

		<h3>[property:float tension]</h3>
		<div>When [page:.type] is `catmullrom`, defines catmullrom's tension. Defaults is *0.5*.</div>


		<h2>Methods</h2>
		<div>See the base [page:Curve] class for common methods.</div>

		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
	</body>
</html><commit_msg>Docs: Typo<commit_after><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<base href="../../../" />
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
	</head>
	<body>
		[page:Curve] &rarr;

		<h1>[name]</h1>

		<div class="desc">Create a smooth 3d spline curve from a series of points using the
			[link:https://en.wikipedia.org/wiki/Centripetal_Catmull-Rom_spline Catmull-Rom] algorithm.</div>

		<h2>Example</h2>

<code>
//Create a closed wavey loop
var curve = new THREE.CatmullRomCurve3( [
	new THREE.Vector3( -10, 0, 10 ),
	new THREE.Vector3( -5, 5, 5 ),
	new THREE.Vector3( 0, 0, 0 ),
	new THREE.Vector3( 5, -5, 5 ),
	new THREE.Vector3( 10, 0, 10 )
] );

var geometry = new THREE.Geometry();
geometry.vertices = curve.getPoints( 50 );

var material = new THREE.LineBasicMaterial( { color : 0xff0000 } );

// Create the final object to add to the scene
var curveObject = new THREE.Line( geometry, material );
</code>

		<h3>[example:webgl_geometry_extrude_splines geometry / extrude / splines]</h3>


		<h2>Constructor</h2>

		<h3>[name]( [page:Array points] )</h3>
		<div>points – An array of [page:Vector3] points</div>




		<h2>Properties</h2>
		<div>See the base [page:Curve] class for common properties.</div>

		<h3>[property:Boolean isCatmullRomCurve3]</h3>
		<div>
			Used to check whether this or derived classes are CatmullRomCurve3s. Default is *true*.<br /><br />

			You should not change this, as it used internally for optimisation.
		</div>

		<h3>[property:Array points]</h3>
		<div>The array of array of [page:Vector3] points that define the curve.</div>

		<h3>[property:Boolean closed]</h3>
		<div>The curve will loop back onto itself when this is true. False by default</div>

		<h3>[property:String curveType]</h3>
		<div>Possible values are `centripetal` (default), `chordal` and `catmullrom`.</div>

		<h3>[property:float tension]</h3>
		<div>When [page:.type] is `catmullrom`, defines catmullrom's tension. Defaults is *0.5*.</div>


		<h2>Methods</h2>
		<div>See the base [page:Curve] class for common methods.</div>

		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
	</body>
</html>
{'fraction_non_alphanumeric': 0.16874166296131615, 'fraction_numerical': 0.02845709204090707, 'mean_word_length': 4.021205357142857, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '123554', 'n_tokens_mistral': 1834, 'n_tokens_neox': 1637, 'n_words': 444}