verb-nurbs
Version:
A library for creating and manipulating NURBS surfaces and curves in many languages
51 lines (36 loc) • 1.2 kB
HTML
<html>
<head>
<title>Cylindrical Surface</title>
<script src="js/verb.min.js"></script>
<script src="js/three.min.js"></script>
<script src="js/verbToThreeConversion.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/codemirror.js"></script>
<script src="js/javascript.js"></script>
<script src="js/threeBasic.js"></script>
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/codemirror.css">
<link rel="stylesheet" href="css/example.css">
<link rel="stylesheet" href="css/colorforth.css">
</head>
<body>
<div id="button">Show/Hide Code</div>
<div id="viewer" class="col">
<div id="title"></div>
</div>
<div id="code-container" class="col scroll-y"></div>
</body>
<script id="script">
setupScene();
var axis = [-1,0,0]
, xaxis = [0,0,1]
, base = [8,0,1]
, height = 16
, radius = 2;
var srf = new verb.geom.CylindricalSurface( axis, xaxis, base, height, radius );
addMeshToScene( srf.toThreeGeometry() );
renderScene();
</script>
<script src="js/example.js"></script>
</html>