mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-18 12:16:05 +08:00
Publish!
Generated from v6.0.11315.11111-test10
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||
<meta name="generator" content="Doxygen 1.8.14"/>
|
||||
<meta name="generator" content="Doxygen 1.8.13"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>openNURBS SDK Help: ONX_Model Class Reference</title>
|
||||
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
|
||||
@@ -22,6 +22,7 @@
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">openNURBS SDK Help
|
||||
 <span id="projectnumber">6.0</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -29,21 +30,18 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.14 -->
|
||||
<!-- Generated by Doxygen 1.8.13 -->
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
|
||||
/* @license-end */
|
||||
</script>
|
||||
<script type="text/javascript" src="../../menudata.js"></script>
|
||||
<script type="text/javascript" src="../../menu.js"></script>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||||
$(function() {
|
||||
initMenu('../../',true,false,'search.php','Search');
|
||||
$(document).ready(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */</script>
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
<!-- window showing the filter options -->
|
||||
<div id="MSearchSelectWindow"
|
||||
@@ -555,8 +553,8 @@ Friends</h2></td></tr>
|
||||
</div><div class="memdoc">
|
||||
<p>Description: Add an copy of the model_geometry and attrbutes to this model.</p>
|
||||
<p>Parameters: managed_geometry_object - [in] managed_geometry_object must point to an instance geometric object (curve, surface, brep, mesh, points, ...), a render light, an annotation object, or a detail object created by operator new and on the heap. It will be deleted when the this <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> and the last <a class="el" href="../../df/de4/class_o_n___model_component_reference.html">ON_ModelComponentReference</a> are destroyed.</p>
|
||||
<p>managed_attributes - [in] managed_attributes should be nullptr or point to an instance created by operator new and on the heap. It will be deleted when the this <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> and the last <a class="el" href="../../df/de4/class_o_n___model_component_reference.html">ON_ModelComponentReference</a> are destroyed. <br />
|
||||
bResolveIdAndNameConflicts - [in] If bResolveIdAndNameConflicts is false, then managed_attributes must be nullptr or managed_attributes->m_uuid must be non-nil and not used in this model. If bResolveIdAndNameConflicts is true, then id will be modified as needed.</p>
|
||||
<p>managed_attributes - [in] managed_attributes should be nullptr or point to an instance created by operator new and on the heap. It will be deleted when the this <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> and the last <a class="el" href="../../df/de4/class_o_n___model_component_reference.html">ON_ModelComponentReference</a> are destroyed.</p>
|
||||
<p>bResolveIdAndNameConflicts - [in] If bResolveIdAndNameConflicts is false, then managed_attributes must be nullptr or managed_attributes->m_uuid must be non-nil and not used in this model. If bResolveIdAndNameConflicts is true, then id will be modified as needed.</p>
|
||||
<p>Returns: A reference to the added model component. If the reference is empty (ON_ModelComponent::IsEmpty() is true) then the input was not valid. </p>
|
||||
|
||||
</div>
|
||||
@@ -1599,8 +1597,7 @@ Friends</h2></td></tr>
|
||||
<p>/ Read settings, layer information, and other tables / with information that is referenced by model object / attributes. bModelRead = model.IncrementalReadBegin( archive, error_log );</p>
|
||||
<p>if ( bModelRead ) { object_filter = ON::mesh_object ///< read meshes | ON::curve_object ///< and curves ; for(;;) { / read the next model object ON_ModelGeometryComponent* pModelObject = model.IncrementalReadModelObject(object_filter,0); if ( 0 == pModelObject ) break;</p>
|
||||
<p>... ///< work with this model object</p>
|
||||
<p>/ done with this object. pModelObject = 0; model.m_object_table.Remove(); } <br />
|
||||
} ON::CloseFile( fp ); } See Also: ONX_Model::IsValid <a class="el" href="../../d3/dfd/class_o_n_x___model.html#aeb080afd3f41d09c76eb7b1c8aab21da">ONX_Model::Write</a> ONX_Model::m_crc_error_count </p>
|
||||
<p>/ done with this object. pModelObject = 0; model.m_object_table.Remove(); } } ON::CloseFile( fp ); } See Also: ONX_Model::IsValid <a class="el" href="../../d3/dfd/class_o_n_x___model.html#aeb080afd3f41d09c76eb7b1c8aab21da">ONX_Model::Write</a> ONX_Model::m_crc_error_count </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1698,8 +1695,7 @@ Friends</h2></td></tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>Description: Reads the next item in the model geometry table.</p>
|
||||
<p>Parameters: archive - [in] bManageModelGeometryComponent - [in] true: The <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> destructor will delete the <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components created by this function. false: The caller must delete the <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components after the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> is destroyed. bManageGeometry - [in] true: The <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> destructor will delete the <a class="el" href="../../df/de0/class_o_n___geometry.html">ON_Geometry</a> classes created by this function. false: The caller must delete the <a class="el" href="../../df/de0/class_o_n___geometry.html">ON_Geometry</a> classes after the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> and <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components are destroyed. bManageAttributes - [in] true: The <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> destructor will delete the <a class="el" href="../../d0/d52/class_o_n__3dm_object_attributes.html">ON_3dmObjectAttributes</a> classes created by this function. false: The caller must delete the <a class="el" href="../../d0/d52/class_o_n__3dm_object_attributes.html">ON_3dmObjectAttributes</a> classes after the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> and <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components are destroyed. model_object_type_filter - [in] If model_object_type_filter is not zero, then it is a bitfield filter made by bitwise oring ON::object_type values to select which types of objects will be read from the model object table. model_geometry_reference - [out] A reference to an <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a>. This referenced <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> component is also added to the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a>. Call ONX_Model.RemoveComponent() if you want to discard it before continuing. <br />
|
||||
Returns: True Succesful. If model_geometry_reference.IsEmpty() is true, then no more geometry objects are available and you should call <a class="el" href="../../d3/dfd/class_o_n_x___model.html#ab096da2ee6eafb6ba15c67e58f3a2cd7">IncrementalReadFinish()</a>. False An error occured and reading should terminate. Remarks: You must call <a class="el" href="../../d3/dfd/class_o_n_x___model.html#a58b4490125175d0fb836b46e53897637">IncrementalReadBegin()</a> before making any calls to IncrementalReadModelObject(). </p>
|
||||
<p>Parameters: archive - [in] bManageModelGeometryComponent - [in] true: The <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> destructor will delete the <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components created by this function. false: The caller must delete the <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components after the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> is destroyed. bManageGeometry - [in] true: The <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> destructor will delete the <a class="el" href="../../df/de0/class_o_n___geometry.html">ON_Geometry</a> classes created by this function. false: The caller must delete the <a class="el" href="../../df/de0/class_o_n___geometry.html">ON_Geometry</a> classes after the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> and <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components are destroyed. bManageAttributes - [in] true: The <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> destructor will delete the <a class="el" href="../../d0/d52/class_o_n__3dm_object_attributes.html">ON_3dmObjectAttributes</a> classes created by this function. false: The caller must delete the <a class="el" href="../../d0/d52/class_o_n__3dm_object_attributes.html">ON_3dmObjectAttributes</a> classes after the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a> and <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> components are destroyed. model_object_type_filter - [in] If model_object_type_filter is not zero, then it is a bitfield filter made by bitwise oring ON::object_type values to select which types of objects will be read from the model object table. model_geometry_reference - [out] A reference to an <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a>. This referenced <a class="el" href="../../db/d69/class_o_n___model_geometry_component.html">ON_ModelGeometryComponent</a> component is also added to the <a class="el" href="../../d3/dfd/class_o_n_x___model.html">ONX_Model</a>. Call ONX_Model.RemoveComponent() if you want to discard it before continuing. Returns: True Succesful. If model_geometry_reference.IsEmpty() is true, then no more geometry objects are available and you should call <a class="el" href="../../d3/dfd/class_o_n_x___model.html#ab096da2ee6eafb6ba15c67e58f3a2cd7">IncrementalReadFinish()</a>. False An error occured and reading should terminate. Remarks: You must call <a class="el" href="../../d3/dfd/class_o_n_x___model.html#a58b4490125175d0fb836b46e53897637">IncrementalReadBegin()</a> before making any calls to IncrementalReadModelObject(). </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -2026,8 +2022,7 @@ Returns: True Succesful. If model_geometry_reference.IsEmpty() is true, then no
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>END model definitions <br />
|
||||
Returns: Bounding box of every object in m_object_table[]. </p>
|
||||
<p>END model definitions Returns: Bounding box of every object in m_object_table[]. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -2513,8 +2508,7 @@ Returns: Bounding box of every object in m_object_table[]. </p>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<p>BEGIN model document level user string tools <br />
|
||||
Description: Attach a user string to the document. Parameters: key - [in] id used to retrieve this string. string_value - [in] If nullptr, the string with this id will be removed. Returns: True if successful. </p>
|
||||
<p>BEGIN model document level user string tools Description: Attach a user string to the document. Parameters: key - [in] id used to retrieve this string. string_value - [in] If nullptr, the string with this id will be removed. Returns: True if successful. </p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -2896,9 +2890,9 @@ Description: Attach a user string to the document. Parameters: key - [in] id use
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Fri Jan 26 2018 12:38:24 for openNURBS SDK Help by  <a href="http://www.doxygen.org/index.html">
|
||||
Generated on Fri Jan 26 2018 04:54:33 for openNURBS SDK Help by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.14
|
||||
</a> 1.8.13
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user