Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Approximate a parametric surface with different graphics primitives
ResourceFunction["ApproximatedSurface"][surf,{u,u0,uf,m},{v,v0,vf,n},"prim"] compute m×n points of a parametric surface varying u from u0 to uf and v from v0 to vf using graphics primitives of the type "prim". | |
ResourceFunction["ApproximatedSurface"][surf,{u,u0,uf,m},{v,v0,vf,n},{"prim",c1,c2}] compute the parametric surface varying a parameters c1 and c2, when available. |
"Coordinates" | coordinates of mesh points |
"Point" | points |
"Arrow" | arrows |
"PointLine" | points and lines |
"LineSphere" | lines and spheres |
"SphereTube" | spheres and tubes |
"Sphere" | spheres |
"Cuboid" | cuboids |
"Cone" | cones |
"Cylinder" | cylinders |
"Line" | lines |
"XTransversalLine" | lines in the x direction |
"YTransversalLine" | lines in the y direction |
"BezierCurve" | Bézier curves |
"Polygon" | a mesh made with polygons |
"TransversalPolygon" | polygons in the x and y direction |
"XTransversalPolygon" | polygons in the x direction |
"YTransversalPolygon" | polygons in the y direction |
"Tube" | squares with circular hole |
"XTransversalTube" | tubes in the x direction |
"YTransversalTube" | tubes in the y direction |
"Mesh" | squared mesh |
"RandomColorMesh" | randomly colored mesh |
"XTransversalStrip" | strips in the x direction |
"YTransversalStrip" | strips in the y direction |
"Holed" | delete alternating polygons |
"Rhombus" | rhombuses |
"RhombusHoled" | delete alternating rhombuses |
"RandomPolygon" | randomly deleted polygons in the mesh |
"DiskHoled" | squares with a circular hole |
"Triangle" | squares subdivided into triangles |
"XTransversalTriangle" | triangles in the x direction |
"YTransversalTriangle" | triangles in the y direction |
"ShrinkPolygon" | shrink polygons |
"RotateScalePolygon" | rotate and scale polygons in the mesh |
"PerturbedMesh" | randomly translate polygons |
"PerturbedVertices" | randomly translate vertices |
"Distorted" | translate vertices around an axis |
"BSplineSurfaceOpen" | an open B–spline surface |
"BSplineSurfaceClosed" | a closed B–spline surface |
"ShortestTour" | shortest tour through the mesh points |
"OutlinePolygons" | outlined polygons |
"HexagonalMesh" | hexagonal mesh |
"TriangulatedHexagonalMesh” | triangulated hexagonal mesh |
"HexagonalMeshHoled" | triangulated hexagonal mesh with a deleted triangle |
"OpacitySphereHexagonalMesh" | hexagonal mesh and spheres with opacity |
"MeshRegion" | mesh regions |
"DiscretizeRegion" | discretized polygons |
"Points" | region of points |
"SamplePoints" | sample points |
"Lines" | region of lines |
"Polygons" | region of polygons |
"SphereAndTube" | region of spheres and tubes |
"SmoothShading" | smooth shading region |
"FaceNormals" | region with face normals |
"CuboidRegion" | region with cuboids |
"DelaunayMesh" | Delaunay mesh |
"ConvexHullMesh" | convex hull mesh |
texture | an image to be used as a texture |
simple polyhedra | a simple polyhedra |
custom polygon | an arbitrary polygon |
Parametric equations for a Klein bottle:
In[1]:= |
![]() |
Out[1]= |
![]() |
Get the coordinates of the mesh of the surface:
In[2]:= |
![]() |
Out[2]= |
![]() |
A surface plotted with ParametricPlot3D:
In[3]:= |
![]() |
Out[3]= |
![]() |
Using points:
In[4]:= |
![]() |
Out[4]= |
![]() |
Using arrows:
In[5]:= |
![]() |
Out[5]= |
![]() |
With lines and points:
In[6]:= |
![]() |
Out[6]= |
![]() |
With lines and spheres:
In[7]:= |
![]() |
Out[7]= |
![]() |
With spheres and tubes:
In[8]:= |
![]() |
Out[8]= |
![]() |
Using only spheres:
In[9]:= |
![]() |
Out[9]= |
![]() |
Modify the radius of the spheres:
In[10]:= |
![]() |
Out[10]= |
![]() |
Using cuboids:
In[11]:= |
![]() |
Out[11]= |
![]() |
Using other geometrical objects:
In[12]:= |
![]() |
Out[12]= |
![]() |
In[13]:= |
![]() |
Out[13]= |
![]() |
In[14]:= |
![]() |
Out[14]= |
![]() |
Using lines:
In[15]:= |
![]() |
Out[15]= |
![]() |
Using BezierCurve:
In[16]:= |
![]() |
Out[16]= |
![]() |
Using transversal polygons:
In[17]:= |
![]() |
Out[17]= |
![]() |
In[18]:= |
![]() |
Out[18]= |
![]() |
Using tubes:
In[19]:= |
![]() |
Out[19]= |
![]() |
Using polygons:
In[20]:= |
![]() |
Out[20]= |
![]() |
With a texture:
In[21]:= |
![]() |
Out[21]= |
![]() |
A randomly colored mesh:
In[22]:= |
![]() |
Out[22]= |
![]() |
With strips:
In[23]:= |
![]() |
Out[23]= |
![]() |
With holes:
In[24]:= |
![]() |
Out[24]= |
![]() |
Using rhombuses:
In[25]:= |
![]() |
Out[25]= |
![]() |
In[26]:= |
![]() |
Out[26]= |
![]() |
Randomly remove polygons:
In[27]:= |
![]() |
Out[27]= |
![]() |
Use transparency in a texture to put in holes:
In[28]:= |
![]() |
Out[28]= |
![]() |
Using triangles:
In[29]:= |
![]() |
Out[29]= |
![]() |
In[30]:= |
![]() |
Out[30]= |
![]() |
Shrink the polygons:
In[31]:= |
![]() |
Out[31]= |
![]() |
Rotate and scale the polygons:
In[32]:= |
![]() |
Out[32]= |
![]() |
Randomly translate polygons:
In[33]:= |
![]() |
Out[33]= |
![]() |
Randomly translate vertices:
In[34]:= |
![]() |
Out[34]= |
![]() |
Distort polygons around an axis of rotation with a varying parameter:
In[35]:= |
![]() |
Out[35]= |
![]() |
Use a BSplineSurface:
In[36]:= |
![]() |
Out[36]= |
![]() |
Shortest tour through the mesh:
In[37]:= |
![]() |
Out[37]= |
![]() |
For a surface with edges:
In[38]:= |
![]() |
Out[38]= |
![]() |
An open B-spline:
In[39]:= |
![]() |
Out[39]= |
![]() |
A closed B-spline:
In[40]:= |
![]() |
Out[40]= |
![]() |
Parametric equations for a Klein bottle:
In[41]:= |
![]() |
Out[41]= |
![]() |
With a perforated polygon:
In[42]:= |
![]() |
Out[42]= |
![]() |
With outlined polygons:
In[43]:= |
![]() |
Out[43]= |
![]() |
With disks:
In[44]:= |
![]() |
Out[44]= |
![]() |
With a 3D disk using BSplineSurface:
In[45]:= |
![]() |
Out[45]= |
![]() |
A hexagonal mesh:
In[46]:= |
![]() |
Out[46]= |
![]() |
A hexagonal mesh subdivided with triangles:
In[47]:= |
![]() |
Out[47]= |
![]() |
A hexagonal mesh with holes:
In[48]:= |
![]() |
Out[48]= |
![]() |
A translucent hexagonal mesh with spheres:
In[49]:= |
![]() |
Out[49]= |
![]() |
Use discretized slices:
In[50]:= |
![]() |
Out[50]= |
![]() |
Using regions, with the plot themes available for regions:
In[51]:= |
![]() |
Out[51]= |
![]() |
In[52]:= |
![]() |
Out[52]= |
![]() |
In[53]:= |
![]() |
Out[53]= |
![]() |
In[54]:= |
![]() |
Out[54]= |
![]() |
In[55]:= |
![]() |
Out[55]= |
![]() |
In[56]:= |
![]() |
Out[56]= |
![]() |
In[57]:= |
![]() |
Here the cuboids are converted into pyramids to be a region:
In[58]:= |
![]() |
Out[58]= |
![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License