@@ -85,10 +85,10 @@ <h2>Quick Start</h2>
8585
8686 <h3>Basic Import</h3>
8787 <pre data-copy><code class="language-python">import svv
88- from svv.domain import Domain
89- from svv.forest import Forest
90- from svv.tree import Tree
91- from svv.simulation import Simulation
88+ from svv.domain.domain import Domain
89+ from svv.forest.forest import Forest
90+ from svv.tree.tree import Tree
91+ from svv.simulation.simulation import Simulation
9292
9393# Create a domain
9494domain = Domain()
@@ -190,7 +190,7 @@ <h4>Main Classes</h4>
190190 </ div >
191191 < div class ="api-example ">
192192 < h4 > Example Usage</ h4 >
193- < pre data-copy > < code class ="language-python "> from svv.domain import Domain
193+ < pre data-copy > < code class ="language-python "> from svv.domain.domain import Domain
194194
195195# Create a domain from a mesh
196196import pyvista as pv
@@ -268,8 +268,8 @@ <h4>Main Classes</h4>
268268 < div class ="api-example ">
269269 < h4 > Example Usage</ h4 >
270270 < pre data-copy > < code class ="language-python "> import pyvista as pv
271- from svv.domain import Domain
272- from svv.forest import Forest
271+ from svv.domain.domain import Domain
272+ from svv.forest.forest import Forest
273273
274274# Prepare a domain and build its implicit representation
275275domain = Domain(pv.Cube())
@@ -399,7 +399,7 @@ <h4>Main Classes</h4>
399399
400400 < div class ="api-example ">
401401 < h4 > Example Usage</ h4 >
402- < pre data-copy > < code class ="language-python "> from svv.simulation import Simulation
402+ < pre data-copy > < code class ="language-python "> from svv.simulation.simulation import Simulation
403403from svv.simulation.fluid.rom.zero_d.zerod_tree import export_0d_simulation
404404
405405# Wrap a generated tree in a Simulation container
@@ -490,8 +490,8 @@ <h2>Common Examples</h2>
490490 < div class ="api-example-card ">
491491 < h3 > Generate a Vascular Tree</ h3 >
492492 < pre data-copy > < code class ="language-python "> import pyvista as pv
493- from svv.domain import Domain
494- from svv.tree import Tree
493+ from svv.domain.domain import Domain
494+ from svv.tree.tree import Tree
495495
496496domain = Domain(pv.Cube())
497497domain.create()
@@ -504,7 +504,8 @@ <h3>Generate a Vascular Tree</h3>
504504tree.n_add(100)
505505
506506# Export watertight geometry for printing or meshing
507- tree.export_solid(outdir='vascular_tree')</ code > </ pre >
507+ solid_model = tree.export_solid(watertight=True)
508+ solid_model.save('vascular_tree.stl')</ code > </ pre >
508509 </ div >
509510
510511 < div class ="api-example-card ">
0 commit comments