<jupyter_start><jupyter_text>Parametric Geometric ObjectsCreating parametric objects<jupyter_code># sphinx_gallery_thumbnail_number = 12
import pyvista as pv
from math import pi<jupyter_output><empty_output><jupyter_text>This example demonstrates how to plot parametric objects using pyvista Supertoroid<jupyter_code>supertoroid = pv.ParametricSuperToroid(n1=0.5)
supertoroid.plot(color="tan", smooth_shading=True)<jupyter_output><empty_output><jupyter_text>Parametric Ellipsoid<jupyter_code># Ellipsoid with a long x axis
ellipsoid = pv.ParametricEllipsoid(10, 5, 5)
ellipsoid.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Partial Parametric Ellipsoid<jupyter_code># cool plotting direction
cpos = [
    (21.9930, 21.1810, -30.3780),
    (-1.1640, -1.3098, -0.1061),
    (0.8498, -0.2515, 0.4631),
]


# half ellipsoid
part_ellipsoid = pv.ParametricEllipsoid(10, 5, 5, max_v=pi / 2)
part_ellipsoid.plot(color="tan", smooth_shading=True, cpos=cpos)<jupyter_output><empty_output><jupyter_text>Pseudosphere<jupyter_code>pseudosphere = pv.ParametricPseudosphere()
pseudosphere.plot(color="tan", smooth_shading=True)<jupyter_output><empty_output><jupyter_text>Bohemian Dome<jupyter_code>bohemiandome = pv.ParametricBohemianDome()
bohemiandome.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Bour<jupyter_code>bour = pv.ParametricBour()
bour.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Boy's Surface<jupyter_code>boy = pv.ParametricBoy()
boy.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Catalan Minimal<jupyter_code>catalanminimal = pv.ParametricCatalanMinimal()
catalanminimal.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Conic Spiral<jupyter_code>conicspiral = pv.ParametricConicSpiral()
conicspiral.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Cross Cap<jupyter_code>crosscap = pv.ParametricCrossCap()
crosscap.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Dini<jupyter_code>dini = pv.ParametricDini()
dini.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Enneper<jupyter_code>enneper = pv.ParametricEnneper()
enneper.plot(cpos="yz")<jupyter_output><empty_output><jupyter_text>Figure-8 Klein<jupyter_code>figure8klein = pv.ParametricFigure8Klein()
figure8klein.plot()<jupyter_output><empty_output><jupyter_text>Henneberg<jupyter_code>henneberg = pv.ParametricHenneberg()
henneberg.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Klein<jupyter_code>klein = pv.ParametricKlein()
klein.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Kuen<jupyter_code>kuen = pv.ParametricKuen()
kuen.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Mobius<jupyter_code>mobius = pv.ParametricMobius()
mobius.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Plucker Conoid<jupyter_code>pluckerconoid = pv.ParametricPluckerConoid()
pluckerconoid.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Random Hills<jupyter_code>randomhills = pv.ParametricRandomHills()
randomhills.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Roman<jupyter_code>roman = pv.ParametricRoman()
roman.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Super Ellipsoid<jupyter_code>superellipsoid = pv.ParametricSuperEllipsoid(n1=0.1, n2=2)
superellipsoid.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Torus<jupyter_code>torus = pv.ParametricTorus()
torus.plot(color="tan")<jupyter_output><empty_output><jupyter_text>Circular Arc<jupyter_code>pointa = [-1, 0, 0]
pointb = [0, 1, 0]
center = [0, 0, 0]
resolution = 100

arc = pv.CircularArc(pointa, pointb, center, resolution)

pl = pv.Plotter()
pl.add_mesh(arc, color='k', line_width=4)
pl.show_bounds()
pl.view_xy()
pl.show()<jupyter_output><empty_output><jupyter_text>Extruded Half Arc<jupyter_code>pointa = [-1, 0, 0]
pointb = [1, 0, 0]
center = [0, 0, 0]
resolution = 100

arc = pv.CircularArc(pointa, pointb, center, resolution)
poly = arc.extrude([0, 0, 1])
poly.plot(color="tan", cpos='iso', show_edges=True)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13997539975399753, 'fraction_numerical': 0.024354243542435424, 'mean_word_length': 12.59866220735786, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, '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}}
{'chain_length': '25', 'dir': 'jupyter-structured-clean-dedup', 'id': '69141', 'license': 'MIT', 'n_tokens_mistral': 1771, 'n_tokens_neox': 1678, 'n_words': 169, 'path': 'locale/examples/00-load/create-parametric-geometric-objects.ipynb', 'repo_name': 'tkoyama010/pyvista-doc-translations', 'size': '4065'}