Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
b6d9e54e1This file is pinned to the selected release. Download the original to open it in your design tool.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: ThreeDModule</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: ThreeDModule</h1>
<section>
<header>
<h2><span class="attribs"><span class="type-signature"></span></span>ThreeDModule<span class="signature">(options)</span><span class="type-signature"></span></h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="ThreeDModule"><span class="type-signature"></span>new ThreeDModule<span class="signature">(options)</span><span class="type-signature"></span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type"><a href="global.html#Options">Options</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line50">line 50</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Members</h3>
<h4 class="name" id="depth"><span class="type-signature"></span>depth<span class="type-signature"> :number</span></h4>
<div class="description">
The depth of the model.
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line90">line 90</a>
</li></ul></dd>
</dl>
<h4 class="name" id="height"><span class="type-signature"></span>height<span class="type-signature"> :number</span></h4>
<div class="description">
The height of the model.
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line83">line 83</a>
</li></ul></dd>
</dl>
<h4 class="name" id="output"><span class="type-signature"></span>output<span class="type-signature"> :string</span></h4>
<div class="description">
The extracted output from execution of the .scad file.
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">string</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line54">line 54</a>
</li></ul></dd>
</dl>
<h4 class="name" id="triangles"><span class="type-signature"></span>triangles<span class="type-signature"> :Array.<<a href="global.html#Triangle">Triangle</a>></span></h4>
<div class="description">
The triangles which make up the model. See <a href="https://en.wikipedia.org/wiki/Triangle_mesh">https://en.wikipedia.org/wiki/Triangle_mesh</a>.
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Array.<<a href="global.html#Triangle">Triangle</a>></span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line101">line 101</a>
</li></ul></dd>
</dl>
<h4 class="name" id="vertices"><span class="type-signature"></span>vertices<span class="type-signature"> :Array.<<a href="global.html#Vertex">Vertex</a>></span></h4>
<div class="description">
A list of 3D vertices returned from the .scad file execution.
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Array.<<a href="global.html#Vertex">Vertex</a>></span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line69">line 69</a>
</li></ul></dd>
</dl>
<h4 class="name" id="width"><span class="type-signature"></span>width<span class="type-signature"> :number</span></h4>
<div class="description">
The width of the model.
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">number</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line76">line 76</a>
</li></ul></dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id="isWithinBoundingBox"><span class="type-signature"></span>isWithinBoundingBox<span class="signature">(boundingBox)</span><span class="type-signature"> → {boolean}</span></h4>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>boundingBox</code></td>
<td class="type">
<span class="param-type"><a href="global.html#BoundingBox">BoundingBox</a></span>
</td>
<td class="description last">The 3D box which the model should fit inside. It is considered 'within' if any coordinate is equal to, or within the box.</td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="api_ThreeDModule.js.html">api/ThreeDModule.js</a>, <a href="api_ThreeDModule.js.html#line60">line 60</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<div class="param-desc">
True if the model fits within the bounding box.
</div>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">boolean</span>
</dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Function.html">Function</a></li><li><a href="ThreeDModule.html">ThreeDModule</a></li><li><a href="TwoDModule.html">TwoDModule</a></li></ul><h3><a href="global.html">Global</a></h3>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>