Mesh

This section describes operators belonging to the Mesh category.

This page discusses:

Apply Attractors On Mesh

Applies a list of attraction/repulsion forces on a mesh.

Inputs

Name Type Description
Mesh Mesh The mesh.
Attractors List The list of attractors.
Steepness Real The greater the steepness, the sharper the function applied on the point depending on the distance between the point and the attractor.

Outputs

Name Type Description
Mesh Mesh —

Assemble Mesh

Assemble multi-domain mesh or multiple meshs into one single mesh.

Inputs

Name Type Description
Mesh Mesh Mesh or a list of meshs.
Tolerance Length The tolerance value under which the vertices will be merged.

Outputs

Name Type Description
Mesh Mesh —

Bending Constraint

Bending tends to preserve shape curvature, it is used to define material's flexibility. Expected edge inputs define the edges where curvature between adjacent faces should be kept.

Inputs

Name Type Description
Edges Mesh Element If you fill this input, the contraint is only applied to the passed elements (edge or set of edges).
Weight Real Weight of the contraint.

Outputs

Name Type Description
Constraint BendingConstraints —

Closest Mesh Element

Finds the closest vertex from a point provided as a vector or the closest mesh element among a provided list.

Inputs

Name Type Description
Mesh Mesh —
Among Mesh Element Optional input : you can find the closest element in this list.
Point Vector —

Outputs

Name Type Description
Closest Mesh Element MeshElement —

Coincidence Constraint

Forces two vertices to have the same position.

Inputs

Name Type Description
Vertex 1 Mesh Vertex —
Vertex 2 Mesh Vertex —
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint CoincidenceConstraint —

Colinearity Constraint

Defines a constraint that requests all passed vertices to be colinear.

Inputs

Name Type Description
Vertices Mesh Element Vertices or set of vertices are expected.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint LineConstraint —

Collision Constraint

Defines a collision constraint between a soft body and a rigid body.

Inputs

Name Type Description
With Rigid Body A rigid body is expected.
Offset Length This allows to control the distance checked for the collision detection. The value should be related to soft body and rigid body mesh sizes (average size of an edge of the mesh). If set to negative, this is done automatically.
Outside Boolean Defines if the collision constraint should try to keep the soft body outside or inside the rigid body.
Real —
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint CollisionConstraint —

Colorize Mesh

Creates a mesh with a texture according to given ratios.

Inputs

Name Type Description
Mesh Mesh The mesh.
Ratios Real List of ratios. The expected values are between 0 and 1. The size of the expected list depends on the mode : either the number of the mesh vertices or the number of the mesh edges.
Mode Integer Tells if the ratios apply to vertices or faces. In case of faces, the ratios are applied on vertices by computing the mean of adjacent faces.

Outputs

Name Type Description
Mesh Mesh Mesh with texture applied.

Coplanarity Constraint

Defines a constraint that requests all vertices passed in input to be coplanar.

Inputs

Name Type Description
Vertices Mesh Element List of vertices or list of set of mesh vertices.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint VerticesPlanarityConstraints —

Digitized Object To Mesh

Converts an object coming from digitized apps to a mesh.

Inputs

Name Type Description
Object Feature Object coming from digitized app.

Outputs

Name Type Description
Mesh Mesh —

Displacement Mapping

Apply a displacement Map on a mesh.

Inputs

Name Type Description
Mesh Mesh The mesh to modify with the displacement.
Image Bitmap The image file representing the displacement map. It is preferably in grayscale. If a multi-channel color image is provided, the mean value between the channels is used.
Height Length The height of the displacement.
Scale Real Modify the scaling of the displacement map. A negative scale value inverts the displacement map.
Repeat Boolean Repeat the displacement map on the uncovered part of the mesh.
Pivot Point Modify the center of the displacement map on the mesh. Must be a point on the mesh.
Angle Angle Modify the orientation angle of the displacement map. The Angle is in degree.
Texturize Boolean Preview the displacement map on the mesh.
Refine Integer Refinement mode to apply on the mesh. 'None': no refinement applied. 'Contour Only': refine parts between two different heights. 'Contour + Inner': refines parts that will change position.
Iterations Integer The number of mesh refinement iterations.
Selection Mesh Element A list of mesh element on which the displacement will be applied, if left empty the displacement will be applied on the entire mesh.
Function X Function Determines how the displacement will be applied on the selected mesh elements.
Distance Length The distance of the application of the interpolation function starting from the boundary of the selected mesh elements, if set to 0mm, the function will be applied on the entire selection.

Outputs

Name Type Description
Mesh Mesh —

Distance Constraint

Defines a constraint that requests two vertices to keep their initial distance. This is not equivalent to Edge Length constraint because only one particle is affected. The constraint is not symmetric.

Inputs

Name Type Description
V1 Mesh Vertex —
V2 Mesh Vertex —
Weight Real —

Outputs

Name Type Description
DistanceConstraint —

Edge Angle Constraint From Edges

Creates an angle constraint between two incident edges on a mesh.

Inputs

Name Type Description
Edge 1 MeshEdge —
Edge 2 MeshEdge —
Minimum Angle Angle —
Maximum Angle Angle —
Weight Real —

Outputs

Name Type Description
EdgeAngleConstraint1 —

Edge Angle Constraint From Face And Vertex

Creates an angle constraint on two incident edges on a mesh, deduced from a face and its vertex.

Inputs

Name Type Description
Face MeshFace —
Vertex Mesh Vertex —
Minimum Angle Angle —
Maximum Angle Angle —
Weight Real —

Outputs

Name Type Description
EdgeAngleConstraint2 —

Edge Length Constraint

Defines constraints that request edges to keep, inflate or deflate their length. It is used to manage elasticity of the material. Edge constraints applied globally with a low weight will give an elastic structure to the soft body. Conversely, heavily weighted edge constraints will create an inextensible structure.

Inputs

Name Type Description
Edges Mesh Element You can pass mesh edges or set of mesh edges. If nothing is provided, all mesh edges are retrieved.
Ratio Real This ratio defines the inflation ratio of the edge length that is expected. If set to 1, the length should remain stable, if greater than 1, it will increase, if lower it will decrease.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint EdgeConstraints —

Edge Length Constraint

Create a constraint on mesh edges, providing their target length.

Inputs

Name Type Description
Edges MeshEdge —
Len Length —
Weight Real —

Outputs

Name Type Description
EdgeConstraints2 —

External Force Constraint

External forces can be defined in a soft body system. It allows to represent gravity or wind for instance.

Inputs

Name Type Description
Direction Vector Direction of the force.
Invert Boolean Invert the direction of the applied force.
Strength Real Strength of the force.

Outputs

Name Type Description
Constraint ExternalForceConstraint —

Face Angle Constraints

Defines a constraint for the angle between two adjacent faces.

Inputs

Name Type Description
Edges Mesh Element Input can be an edge or a set of edges The constraint is applied on all pair of faces which are incident to provided edges.
Min Angle Angle —
Max Angle Angle —
Weight Real —

Outputs

Name Type Description
FaceAngleConstraints —

Face Area Constraint

Defines constraints that requests faces to keep, inflate or deflate their area.

Inputs

Name Type Description
Faces Mesh Element You can pass faces or set of mesh faces. If nothing is provided, all mesh faces are retrieved.
Ratio Real This ratio defines the inflation ratio of the area that is expected. If set to 1, the area should remain stable, if greater than 1, it will increase, if lower it will decrease.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint TriangleConstraints Created constraint.

Fixed Boundary Constraint

Defines a constraint that fixes all vertices of the mesh boundaries (including holes). The behavior of this constraint is a bit specific : when solving the constraints, the position of the fixed vertices is not set at the target, but is forced when solver stops. So carefully adjusting the weight is important.

Inputs

Name Type Description
Weight Real Weight of the contraint.
Elastic Boolean Toggles elasticity support. If false, the vertices are absolutely fixed. If not, they may be moved from their original position depending on other constraints.

Outputs

Name Type Description
Constraint FixBoundaryConstraint —

Fixed Vertices Constraint

Defines the vertices of the soft body that should be fixed (remain at their initial position). The behavior of this constraint is a bit specific : when solving the contraints, the position of the fixed vertices is not set at the target, but is forced when solver stops. So carefully adjusting the weight is important.

Inputs

Name Type Description
Elements Mesh Element You can pass a list of any type of mesh element. Vertices are deduced from passed elements. If nothing is provided, all mesh vertices are retrieved.
Elastic Boolean Toggles elasticity support. If false, the vertices are absolutely fixed. If not, they may be moved from their original position depending on other constraints.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint FixedVerticesConstraints —

Generative Mesh From Image

This is a Beta feature under evaluation. Any decision to use it is subject to important terms and conditions that the customer understands and accepts by using it. Refer to the offering specific terms available at www.3ds.com/terms for these terms and conditions.

Generates 3D mesh from 2D image using AI driven design reconstruction. This Beta operator is limited to 10 uses per day.

Inputs

Name Type Description
Image Bitmap Image or list of images representing the object to generate.
Seed Integer Seed used to keep stability when use seed is true.
Use Seed Boolean Allow to use the seed input value to keep stability of the generation.

Outputs

Name Type Description
Mesh Mesh —

Iso Surface Mesh

Builds a mesh based on an equation.

Inputs

Name Type Description
Equation String Equation using x,y,z written with EKL.
Iso Value Real —
Xmin Length —
Xmax Length —
Ymin Length —
Ymax Length —
Zmin Length —
Zmax Length —
Samples Per Dir Integer —
Min Mesh Size Length —
Closure Mode Integer Only active is the iso surface isn't already closed. Depending on the mode, produces a closed mesh that includes values greater or lower than specified iso value.

Outputs

Name Type Description
Mesh Mesh —

Mesh Add Loop

This operator splits quad faces based on the selection of a face and a direction. It outputs a new mesh, two sets of created faces and a set of created edges.

Inputs

Name Type Description
Face MeshFace Initial face. Other faces will be split, automatically deduced based on a propagation to adjacent faces, depending on the passed direction.
Direction Vector This direction allows to find how the face should be split.
Ratio Real Allows to control the position of the splitting edge.

Outputs

Name Type Description
Mesh Mesh Created mesh.
New Faces 1 SetOfMeshFaces First set of faces created by the split operation.
New Faces 2 SetOfMeshFaces Second set of faces created by the split operation.
New Edges SetOfMeshEdges Set of created edges.

Mesh Boundaries

Extracts the mesh boundaries. Result is a list of set of edges objects.

Inputs

Name Type Description
Mesh Mesh —
Split Angle Angle The boundary operator outputs objects of type SetOfMeshEdges that contain the edges for a given boundary. This option allows to split those sets according to an angle between consecutive edges.

Outputs

Name Type Description
Boundaries List Outputs a list of SetOfMeshEdges.

Mesh Cone

Creates a conical mesh.

Inputs

Name Type Description
Ref Axis System Matrix Defines the center and z direction of the cone with an axis system as reference.
Radius Length —
Height Length —
Divisions Integer —

Outputs

Name Type Description
Mesh Mesh —

Mesh Curvature

Compute different curvature values and applies a texture on the mesh according to those curvatures.

Inputs

Name Type Description
Mesh Mesh —
Type Integer Sets the type of curvature analysis to be computed: classical curvature analysis or tensor one.
Smooth Iterations Integer Number of curvature smoothing iterations to be done. Curvature computation on a mesh is an approximation of the surface curvature, and smoothing it can provide more accurate results depending on the shape of the surface.
Display Integer Specify the curvature value to be used to apply the texture : max curvature, mean curvature or gaussian curvature.

Outputs

Name Type Description
Mesh Mesh —
Maximum Curvatures List —
Mean Curvatures List —
Gaussian Curvatures List —

Mesh Cylinder

Builds a cylindrical mesh.

Inputs

Name Type Description
Ref Axis System Matrix Defines the center and z direction of the cylinder with an axis system as reference.
Radius Length —
Height Length —
Divisions Integer —

Outputs

Name Type Description
Mesh Mesh —

Mesh Decimate

Simplifies a mesh trying to preserve its shape.

Inputs

Name Type Description
Mesh Mesh —
Ratio Real Ratio of the decimation. If 0.1, the number of vertices should be divided by around 10.
Angle Angle Sharp edge detection angle. Decimation process tries to preserve sharp edges whose angle are greater than this input.
Selection Mesh Element The decimation process can be applied only on selected elements.
Preserve Mesh Element The decimation process will preserve the elements passed in this input.

Outputs

Name Type Description
Mesh Mesh —

Mesh Domains

Builds as many meshes as there are domains on the input mesh.

Inputs

Name Type Description
Mesh Mesh —

Outputs

Name Type Description
Domains List —

Mesh Dual

Creates the dual of a mesh.

Inputs

Name Type Description
Mesh Mesh —
With Bound Boolean —

Outputs

Name Type Description
Mesh Mesh —

Mesh Extrude Boundary

Creates a new set of quad faces that extends a mesh based on a set of boundary edges passed.

Inputs

Name Type Description
Mesh Edges MeshBase A set of mesh edges on the mesh boundary or the mesh itself (in that case, whole boudary is used).
Length Length Width of the created quad faces. It lower or equal to zero, it's computed automatically based on mean of edges size.
Angle Angle Fold angle between the created quad faces and the adjacent faces.
Iterations Integer Number of iterations to apply.
Angle Function X Function Optional function to set a varying angle for the faces to create. Values must be between -90deg and 90deg.

Outputs

Name Type Description
Mesh Mesh Created Mesh.
New Edges SetOfMeshEdges A set of mesh edge containing the new created boundary.

Mesh Fairing

Mesh fairing is a kind of smoothing operation. It changes the position of vertices in order to minimize either the area or the curvature. It works only if there are mesh boundaries (non closed mesh) or if some selection is provided.

Inputs

Name Type Description
Mesh Mesh —
Ratio Real If provided ratio is 0, it minimizes the curvature. If it is 1 it minimizes the area. In between, interpolation between two modes is made.
Selection Mesh Element Applies the mesh fairing only on the selected mesh elements.
Preserve Mesh Element Applies the mesh fairing on the mesh elements that are not preserved.

Outputs

Name Type Description
Mesh Mesh —

Mesh Fill Holes

Fills the holes of a mesh.

Inputs

Name Type Description
Mesh Mesh —
Elements Mesh Element If elements are passed, the holes to fill are deduced from those elements. Otherwise all holes are filled. You can pass any element that has some vertices on a boundary in this list.

Outputs

Name Type Description
Mesh Mesh —

Mesh From Lines

Creates a mesh based on a set of curves or lines (in case of curves, the line between curve extremities is considered).

Inputs

Name Type Description
Lines Curve —
Max Valence Integer Maximum number of edges per face. Carefully setting this value allows to avoid to systematically create close meshes.

Outputs

Name Type Description
Create Mesh Mesh —

Mesh From Points

Builds a mesh based on a list of points.

Inputs

Name Type Description
Points Point List of points.
Mode Integer With 2D mode, points are projected on a 2d plane, mesh is created on this plane, then 3D is restored.
Deviation Length This option only applies with 3D option. It allows to define the maximum deviation between the mesh and the points.
Face removal ratio Real This deletes automatically faces that have long edges compared to the mean of mesh edges length. It can be useful to have better boundaries and to manage holes.

Outputs

Name Type Description
Mesh Mesh —

Mesh Geodesic Distances

Computes geodesic distances of mesh elements to a list of vertices in input and applies a texture on the mesh that shows those distances.

Inputs

Name Type Description
Vertices Mesh Vertex —
Dimension Integer Gives the expected mesh element kind for the distance computation : vertex, edge or face. The computed distances in output will provide distances of vertices, edges or faces depending on this input.

Outputs

Name Type Description
Mesh Mesh Mesh with texture applied showing the geodesic distances to the source elements.
Distances List A list of distances of elements in the mesh. The list size depends on the input dimension chosen.

Mesh Icosphere

Creates an icosphere : a spherical mesh that is made of triangles of the same size.

Inputs

Name Type Description
Center Point Sphere center.
Radius Length Sphere radius.
Subdivisions Integer Number of subdivisions step to use.

Outputs

Name Type Description
Mesh Mesh —

Mesh Iso Curves

Generates iso-curves based on field of values put on mesh vertices. Only works on a triangular mesh.

Inputs

Name Type Description
Mesh Mesh —
Values on vertices Real This should contain as many values as there are vertices on the mesh.
Iso Values Real List of iso values. Those values should be within min and max of previous input values.

Outputs

Name Type Description
Iso Curves List —

Mesh Neighbours

Finds the neighbours of a list of mesh elements : given a mesh element, a list of vertices are extracted from the element. Then all vertices of the mesh that are farther than minimum distance and closer than maximum distance are retrieved (distance used is geodesic). If among list is provided, an intersection of those vertices and the vertices extracted from among list is made. Finally, the result is converted into the expected output format.

Inputs

Name Type Description
Mesh Element Mesh Element Can be a vertex, an edge, a face, a set of vertices, a set of edges, a set of faces. A list of all vertices to be considered is then computed from this element.
Among Mesh Element If you provide a list of mesh elements in this input, the result will be the intersection of computed neighbours and of the elements in this list.
Dimension Integer Expected output type : vertex, edge, face, set of vertices, set of edges, set of faces.
Minimum Distance Length Neighbours farther than this length are removed from the output.
Maximum Distance Length Neighbours closer than this distance are included in the output.

Outputs

Name Type Description
Neighbours MeshElement —

Mesh Neighbours By Rings

Finds the neighbours of a mesh element based on the repetitive addition of rings around the element.

Inputs

Name Type Description
Mesh element Mesh Element —
Type of output Integer —
Number of rings Integer —

Outputs

Name Type Description
Neighbours MeshElement —

Mesh Plane

Builds a planar, rectangular mesh.

Inputs

Name Type Description
Ref Axis System Matrix Defines center and directions with a specific axis system as reference.
Width Length —
Divisions Integer —

Outputs

Name Type Description
Mesh Mesh —

Mesh Quadsphere

Builds a mesh sphere made of quad faces. This is basically a cube that is subdivided.

Inputs

Name Type Description
Center Point Sphere Center.
Radius Length Sphere radius.
Subdivisions Integer Number of subdivisions.

Outputs

Name Type Description
Mesh Mesh —

Mesh Rough Offset

Generates a rough offset of a mesh, with the same distance all over the mesh. Three modes are available: -Mode 1: Two-sided offset. A closed mesh is calculated as a shell around the input mesh. -Mode 2: One-sided offset. The mesh is calculated with extension of its borders -Mode 3: One-sided offset. No extension of the mesh borders.

Inputs

Name Type Description
Mesh Mesh —
Offset Length Offset length to apply.
Mesh Size Length The mesh size is the expected size of an edge of a face of the result mesh. If set to 0mm, the mesh size is computed automatically.
Mode Integer —

Outputs

Name Type Description
S Mesh —

Mesh Sharp Edges

Extracts mesh sharp edges.

Inputs

Name Type Description
Mesh Mesh —
Angle Angle Sharp edges detection angle.
Split Angle Angle The Sharp Edges operator outputs objects of type SetOfMeshEdges that contain the edges for a given sharp edge. This option allows to split those sets according to an angle between consecutive edges.

Outputs

Name Type Description
Edges List Outputs a list of SetOfMeshEdges.

Mesh Shortest Path

Computes the shortest path on the mesh between two vertices. Depending on the selected mode, it will return either a set of mesh edges object or a poyhedral curve.

Inputs

Name Type Description
Vertex 1 Mesh Vertex —
Vertex 2 Mesh Vertex —
Mode Integer Either geodesic (the operator will return a polyhedral curve) or the shortest path thru mesh edges. For the geodesic mode : the algorithm will provide a very good solution but may not return the shortest geodesic path. The mesh needs to be convertible in polyhedral surface for the geodesic mode.

Outputs

Name Type Description
Path Either a polyhedral curve or a set of edges depending on the selected mode.

Mesh To Polyhedral Surface

Creates polyhedral surfaces from a mesh. The creation process starts by splitting the mesh into its domains, and for each domain tries to create a polyhedral surface. It can fail for many reasons depending on the quality of the mesh passed in input (auto-intersection, duplicate vertices, naked vertices, ...).

Inputs

Name Type Description
Mesh Mesh —
Fix intersections Boolean Automatically fixes self-intersections issues.

Outputs

Name Type Description
Polyhedral Surface List The list of polyhedral surfaces created.

Mesh To Surface

Converts a mesh into a surface using subdivision technics.

Inputs

Name Type Description
Mesh Mesh —

Outputs

Name Type Description
S GeometricSurface —

Mesh Topological Faces

Extracts the set of faces separated by sharp edges in the mesh.

Inputs

Name Type Description
Mesh Mesh —
Angle Angle Sharp edge detection angle.

Outputs

Name Type Description
Faces List Outputs a list of SetOfMeshFaces.

Mesh Torus

Builds a torus mesh.

Inputs

Name Type Description
Ref Axis System Matrix Defines center and z direction with an axis system as reference.
Interior Radius Length —
Exterior Radius Length —
Radial Divisions Integer —
Tabular Divisions Integer —

Outputs

Name Type Description
Mesh Mesh —

Mesh Unfold

Unfold and Flatten 3d input mesh into a 2d mesh, using a parameterization similar to 'Texturize Mesh' operator.

Inputs

Name Type Description
Mesh Mesh —
Width Integer The width of the output Image.
Height Integer The height of the output Image.

Outputs

Name Type Description
Mesh Mesh —
Image Bitmap —

Mesh UV Sphere

Buillds a spherical mesh made of quads and triangles.

Inputs

Name Type Description
Ref Axis System Matrix Axis system providing center and direction of z axis.
Radius Length Sphere radius.
U Divisions Integer —
V Divisions Integer —

Outputs

Name Type Description
Mesh Mesh —

Mesher

Creates a mesh from an exact surface.

Inputs

Name Type Description
Surface Surface Input surface.
Type Integer Type of mesh to be created : only quadrangular, mostly quadrangular, triangular.
Option Integer Tells if the meshing process should adapt to curvature : Isometric will create a regular mesh, Adaptive will create a mesh where mesh size adapts to surface curvature. Currently this option only applies for triangular meshes.
Mesh Size Length The mesh size is the expected size of an edge of a face of the mesh to create. If set to 0mm, the mesh size is computed automatically in order to get around 800 faces (it's not accurate and depends on the type of mesh, it will be around 400 faces for a quadrangular mesh).
Min Max Ratio Real For adaptative meshes, defines the ratio between mesh size and min mesh size. The lower it is, the smaller the minimum mesh size.
Error Ratio Real This parameter is only used when using adaptative meshing. The lower it is, the closer the mesh is from the surface and the lower the mesh size is in highly curved areas. It's advised not to define this parameter lower than 0.01.
Gradation Real For adaptative mesh, defines the maximum allowed ratio between the length of two adjacent edges.
Angle Angle This parameter defines the angle for sharp edges detection. Detected sharp edges are kept in mesh result.
Keep Edges Boolean If set to true, the mesher create faces that bound the internal edges of the surface.
Local Spec MesherLocalSpec An optional list of local specifications (Local Size, Local Type), that adds more constraints on the meshing.

Outputs

Name Type Description
Mesh Mesh —

Mesher Local Specification

An additional specification that can be added to the Mesher Operator to set mesh Size or Type constraint on a selection of faces.

Inputs

Name Type Description
Faces Surface The selected faces of the surface to be meshed on which the Specification will be applied. The faces should be part of the surface to be meshed.
Mesh Size Length The mesh size to be expected on the selected faces. If set to 0, it will not affect the meshing size on the selected faces.
Type Integer Type of mesh to be expected on the selected faces. If set to Not Used, it will not affect the meshing type on the selected faces.

Outputs

Name Type Description
MesherLocalSpec —

Modify Mesh Selection

Provides different ways to combine mesh elements : adds, removes, intersects, invert selections. In all the modes, vertices are first extracted from the different elements provided in the inputs and duplicates are removed. Then depending on the mode, combines the two first inputs and converts the result into the expected type.

Inputs

Name Type Description
Elements1 Mesh Element List of mesh elements.
Elements2 Mesh Element List of mesh elements. This input is not used in case of inversion mode usage.
Mode Integer Add: combines first input elements and second input elements Remove: removes second inputs elements for first input elements Intersect: keeps only elements that are both in first and second input elements Invert: returns all elements from the mesh that aren't in first input elements.
Dimension Integer Expected output type : set of vertices, set of edges, set of faces.

Outputs

Name Type Description
Result MeshElement —

Move And Rotate Constraint

Creates a constraint on mesh elements to move them and rotate them during the mesh solver execution. You can control when it applies (start and end iteration) so you can chain several contraints on the same mesh elements to provide complex movements and rotations.

Inputs

Name Type Description
Mesh Element Mesh Element Can be a vertex (rotation won't work), an edge, a face, a set of vertices, a set of edges or a set of faces.
Start Iteration Integer The constraint will be applied only when solver iteration will reach this value.
End Iteration Integer This constraint will stop acting when solver iteration will reach this value. If the value is left to -1, the value is automatically computed : 2/3 of the total number of solver iterations.
Pathway Curve The pathway of the movement to apply to the mesh element. It should be a mono-domain curve.
Ref Axis System Matrix You can pass a matrix defining an axis system to define how the rotations are applied. If not provided, default reference axis system is used.
Rotate Z Angle Rotation around the reference Axis System Z axis.
Rotate Y Angle Rotation around the reference Axis System Y axis.
Rotate X Angle Rotation around the reference Axis System X axis.
Elastic Boolean Toggles elasticity support. If false, the vertices are absolutely fixed. If not, they may be moved from their original position depending on other constraints.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint MoveAndRotateConstraint —

Move Mesh Vertices

Allows to modify the position of mesh vertices. The mesh is implicit : it's retrieved from the list of vertices.

Inputs

Name Type Description
Vertices Mesh Vertex List or vertices. They must all belong to the same mesh.
Position vectors Vector List of vectors providing the new position of the vertices.

Outputs

Name Type Description
Mesh Mesh —

Offset Mesh

Creates an offset mesh. It may create a self-intersecting mesh.

Inputs

Name Type Description
Mesh Mesh —
Offset Length Offset length to apply.
Mode Integer Raw or curvature mode: the second one tries to take into account the local curvature to make the offset vary in order to keep the mesh sharp angles. As curvature on a point of a mesh is an approximation, result cannot be perfect.
Fixed Boolean If false, the offset is locally modified to take into account the local mesh size. The smaller the mesh size, the smaller the applied offset.
Orientation Boolean A mesh surface has an orientation. This input changes the default orientation of the mesh.

Outputs

Name Type Description
Mesh Mesh —

Planarity Constraint

Contraint faces to be planar. Only applies for non triangular meshes.

Inputs

Name Type Description
Faces Mesh Element The list of elements (faces or set of faces) on which the constraint should be applied.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint PlanarityConstraints —

Polyhedral To Mesh

Converts a polyhedral surface into a mesh.

Inputs

Name Type Description
Surface Surface Input polyhedral surface.

Outputs

Name Type Description
Mesh Mesh —

Pressure Constraint

Tends to give a global volume to the object. The mesh must be closed.

Inputs

Name Type Description
Pressure Real Pressure ratio.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint PressureConstraints —

Raw Mesh From Surface

This operator converts directly an exact surface into a mesh without a mesher. It extracts faces and vertices from the surface topology. It won't provide good results if the surface is not prismatic.

Inputs

Name Type Description
Surface Surface —

Outputs

Name Type Description
Mesh Mesh —

Remesher

Creates a new triangular mesh from a mesh according to different options.

Inputs

Name Type Description
Mesh Mesh —
Mode Integer —
Mesh Size Length The mesh size is the expected size of an edge of a face of the mesh to create. If set to 0mm, the mesh size is computed automatically in order to get around 800 faces (it's not accurate since it computes the maximum edge size and depends on lot of factors).
Min/Max Ratio Real Ratio between the mesh size and the minimum mesh size in case of adaptative meshes.
Error Ratio Real Error ratio to be reached to be as closed as the initial mesh as possible. Only used for adaptative meshes. The lower it is, the greater the number of faces in case of adaptative meshes.
Angle Angle Sharp edge detection angle. Sharp edges are kept during the meshing process.
Iterations Integer Number of iterations for the meshing process.
Selection Mesh Element If non empty, this input defines the mesh elements that need to be remeshed : you can remesh only part of a mesh.
To Preserve Mesh Element If set, this input defines the mesh elements that should not be modified during the remeshing process.

Outputs

Name Type Description
Mesh Mesh —

Remesher Quad

Creates a new quadrangular mesh from a mesh according to different options.

Inputs

Name Type Description
Mesh Mesh —
Mode Integer Quad or Quad-Dominant.
Mesh Size Length The mesh size is the expected size of an edge of a face of the mesh to create. If set to 0mm, the mesh size is computed automatically in order to get around 400 faces (it's not accurate).
Angle Angle Sharp edge detection angle. Sharp edges are kept during the meshing process.

Outputs

Name Type Description
Mesh Mesh —

Rigid Body

A rigid body can be used to create collision constraints for the mesh constraint solver.

Inputs

Name Type Description
Mesh Mesh —

Outputs

Name Type Description
Rigid Body RigidBody —

Self-intersection Constraint

This contraint tries to prevent mesh self-intersections.

Inputs

Name Type Description
Offset Length This input influences the detection of self intersection. It should be related to mesh size (average size of an edge of the mesh).
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint SelfCollisionConstraint —

Set Of Mesh Elements To Mesh

Converts a set of mesh elements (vertices, edges or faces) into a mesh. if the input is not a set of faces, there is first a conversion to a set of faces. Then it creates a mesh (that can have multiple domains) from the set of faces.

Inputs

Name Type Description
Elem Mesh Element —

Outputs

Name Type Description
Mesh Mesh —

Shape Matching Constraint

Constrains a set of vertices or the whole mesh to behave like a rigid body by trying to keep its shape.

Inputs

Name Type Description
Vertices Mesh Element Vertices or set of vertices expected. If you don't fill it, all mesh vertices are used.
Weight Real Weight of the constraint.

Outputs

Name Type Description
Constraint ShapeMatchingConstraint —

Smooth Mesh By Iterations

Smoothes a mesh.

Inputs

Name Type Description
Mesh Mesh —
Algorithm Integer Select the smoothing algorithm.
Laplacian Integer Use uniform laplacian or cotan laplacian during smoothing algorithm. Cotan laplacian usually provides better results. This option is not used for Bilateral smoothing algorithm.
Iterations Integer Number of smoothing iterations to apply.
Rescale Boolean If activated, applies translation and scaling after smoothing to keep same centroid and area.

Outputs

Name Type Description
Mesh Mesh —

Smooth Mesh By Ratio

Smoothes a mesh.

Inputs

Name Type Description
Mesh Mesh —
Laplacian Integer Use uniform laplacian or cotan laplacian during smoothing algorithm. Cotan laplacian usually provides better results.
Real —
Rescale Boolean If activated, applies translation and scaling after smoothing to keep same centroid and area.

Outputs

Name Type Description
Mesh Mesh —

Soft Body

Creates a soft body from a mesh. A soft body can be integrated in a pseudo physics solver which will try to solve the contraints added to the softbody.

Inputs

Name Type Description
Mesh Mesh —
Density Surfacic Mass Surface density of the soft body. It has a strong influence on the way constraints are applied during solver execution.
Damping Real Damping value is used to progressively reduce system's energy by lightly decreasing particles velocity. During mathematical system's solving, energy is naturally damped. Using damping is not advised to obtain a realistic simulation, but helps the quick convergence.
Iterations Integer Defines the number of internal solver iterations. When a solver is executed, the solving process is decomposed into two steps : internal solver iterations that try to solve the softbody constraints and solver ones, that will apply some specific constraints : move and external forces ones. This may be an important option to optimize performances.
Tolerance Length Defines when internal solver iterations should stop automatically : if no change is made on the mesh that is higher to the provided tolerance, internal solving process is stopped. This may be an important option to optimize performances.
Constraints Mesh Constraint List of contraints to apply on the soft body during the solver execution. It's mandatory to pass a minimum set of constraints to get satisfying results.

Outputs

Name Type Description
Softbody SoftBody —

Softbodies Solver

Pseudo-physics solver. Solves a set of constraints applied on a set of softbodies based on meshes. The solver doesn't manage collision between soft bodies.

Inputs

Name Type Description
Softbody Physic Body List of softobodies with their contraints that should be solved.
Time Step Time Time between two solver iterations. It's used in external forces management.
Iterations Integer Number of iterations to apply on the solver. Number of iterations to set is highly dependent from the nature of constraints to solve and on the type of solver to use (static or dynamic). If dynamic solver is selected, an high number of iterations may be needed.
Dynamics Boolean False : A simulation only considers particles movement and core interactions True : A dynamic simulation takes into account system's motion using mass and forces.
Visualize Boolean If True, the system computes and updates the visualization of the intermediary results. Performances are impacted.

Outputs

Name Type Description
Mesh List —

Stay On Rigid Contraint

Creates a constraint on mesh vertices or on the whole mesh, requiring vertices to stay on the rigid object mesh.

Inputs

Name Type Description
Elems Mesh Element —
Rigid object Rigid Body —
Force Boolean If True, vertices are forced to be on the rigid object mesh. If not, they can be distant from it depending on other constraints.
Weight Real —

Outputs

Name Type Description
StayOnRigidContraint —

Subdivide Mesh

Subdivides a mesh, making it smoother but with more mesh elements.

Inputs

Name Type Description
Mesh Mesh —
Iterations Integer Number of subdivision iterations.
Type Integer Subdivision scheme: Catmull-Clark, Loop and Tri-Quad. Loop algorithm only work on triangular meshes. If a non-triangular mesh is provided in input, it's automatically made triangular before doing the subdivision.
Keep sharp Boolean Activates this option if you want to keep sharp edges where curvature is greater than a given angle This option is only active for Catmull-Clarck and Loop algorithms.
Angle threshold Angle Sharp edges with curvarture angle greater than this value will be kept.
To Preserve Mesh Element List of mesh elements that should not be modified by subdivision operator This option is only active for Catmull-Clarck and Loop algorithms.

Outputs

Name Type Description
Mesh Mesh —

Subdivision Surface To Mesh

Retrieves the mesh that defines a subdivision surface, with some associated values hidden by default. Those values can be injected back when creating a subdivision surface from a modified mesh. This operator supports surfaces from Imagine And Shape and Creative Design Experience apps.

Inputs

Name Type Description
Surface Feature A subdivision surface coming from a graph input.

Outputs

Name Type Description
Mesh Mesh —
Vertices Weight List List of weights put on vertices.
Edges Weight List List of weights put on edges.
Edges Sharpness List List of boolean values telling if the edges are sharp or not.

Texturize Mesh

Apply texture image on a mesh.

Inputs

Name Type Description
Mesh Mesh The mesh to texturize.
Image Bitmap The texture image.
Length —
Scale Real Modify the scaling of the texture image. A negative scale value inverts the texture image.
Repeat Boolean Repeat the texture image on the uncovered part of the mesh.
Pivot Point Modify the center of the texture image on the mesh. Must be a point on the mesh.
Angle Angle Modify the orientation angle of the texture image. The Angle is in degree.
Boolean —
Integer —
Integer —

Outputs

Name Type Description
S Mesh —

Thicken Mesh

Thickens a mesh. It cannot be used on a closed mesh.

Inputs

Name Type Description
Mesh Mesh —
Offset Length Offset length to be applied.
Mode Integer Raw or curvature mode: the second one tries to take into account the local curvature to make the offset vary in order to keep the mesh sharp angles. As curvature on a point of a mesh is an approximation, result cannot be perfect.
Fixed Boolean If false, the offset is locally modified to take into account the local mesh size. The smaller the mesh size, the smaller the applied offset.
Triangular Boolean Basically, a thicken operation is an offset and then a seam between two parts. This defines is the seam should use triangles or quadrangular faces.

Outputs

Name Type Description
Mesh Mesh —

Thicken Mesh Wireframe

Creates a closed volumic mesh from a mesh wireframe.

Inputs

Name Type Description
Mesh Mesh —
Radius Length Radius of the wireframe thickening process.
Fixed Boolean Indicates if the thickening process should use a fixed radius or make it vary based on edge lengths.

Outputs

Name Type Description
Mesh Mesh —

Triangulate Mesh

Triangulates a non triangular mesh.

Inputs

Name Type Description
Mesh Mesh —
Mode Integer Two modes : MinArea or MaxAngle : finds the triangulation that minimizes the triangle areas or maximizes the minimum angle.

Outputs

Name Type Description
Mesh Mesh —

Volume Constraint

Defines a constraint that requests the volume defined by some mesh faces to be be kept, inflated or deflated.

Inputs

Name Type Description
Faces Mesh Element If you use this input (faces or set of faces), it will apply the constraint only on the passed faces.
Ratio Real This ratio defines the inflation ratio of the volume that is expected. If set to 1, the volume should remain stable, if greater than 1, it will increase, if lower it will decrease.
Weight Real —

Outputs

Name Type Description
Constraint VolumeConstraint —