A collection of methods to applay subdivision rules to a MolaMesh. More...
Static Public Member Functions | |
static MolaMesh | CatmullClark (MolaMesh mesh) |
Apply CatmullClark algorithm to a MolaMesh. | |
static MolaMesh | Extrude (MolaMesh molaMesh, float height, bool capTop=true) |
Extrudes the all faces in a MolaMesh straight by a single distance height. | |
static MolaMesh | Extrude (MolaMesh molaMesh, List< float > heights, List< bool > capTops) |
Extrudes the all faces in a MolaMesh straight by a list distance height. | |
static MolaMesh | ExtrudeAlongVec (MolaMesh molaMesh, List< Vec3 > directions, List< float > heights, List< bool > capTops) |
Extrudes the all faces in a MolaMesh along a list of directions and by a list distance height. | |
static MolaMesh | ExtrudeAlongVec (MolaMesh molaMesh, Vec3 direction, float height, bool capTop=true) |
Extrudes the all faces in a MolaMesh along a direction by a single distance height. | |
static MolaMesh | ExtrudeTapered (MolaMesh molaMesh, float height, float fraction, bool capTop) |
Extrudes all face in a MolaMesh tapered like a window by creating an offset face and quads between every original edge and the corresponding new edge. | |
static MolaMesh | ExtrudeTapered (MolaMesh molaMesh, List< float > heights, List< float > fractions, List< bool > capTops) |
Extrudes all face in a MolaMesh tapered like a window by creating an offset face and quads between every original edge and the corresponding new edge. | |
static MolaMesh | ExtrudeToPointCenter (MolaMesh molaMesh, float height=0f) |
Extrude each face in a MolaMesh to a new point offset from its center by a distance along the normal vector of the face and create triangular faces from each edge to the point. | |
static MolaMesh | ExtrudeToPointCenter (MolaMesh molaMesh, List< float > heightList) |
Extrudes each face in a MolaMesh to the center point moved by height normal to the face and creating a triangular face from each edge to the point. | |
static MolaMesh | Grid (MolaMesh molaMesh, int nU, int nV) |
Splits all triangle or quad faces in a MolaMesh into regular grids. | |
static MolaMesh | Grid (MolaMesh molaMesh, List< int > nUList, List< int > nVList) |
splits all triangle or quad faces in a MolaMesh into regular grids | |
static MolaMesh | GridAbs (MolaMesh molaMesh, float x, float y) |
Subidivide each face in a MolaMesh into cells with absolute size. | |
static MolaMesh | GridAbs (MolaMesh molaMesh, List< float > xList, List< float > yList) |
Subidivide each face in a MolaMesh into cells with absolute size. | |
static MolaMesh | LinearSplitBorder (MolaMesh molaMesh, float borderWidth1=1f, float borderWidth2=1, int dir=0) |
Extrudes all face in a MolaMesh tapered like a window by creating an offset face and quads between every original edge and the corresponding new edge. | |
static MolaMesh | LinearSplitQuad (MolaMesh molaMesh, float maxSplitWidth=1f, int dir=0) |
Split each face in a quad MolaMesh into three quads in one direction by specifying the max width of the segments. | |
static MolaMesh | LinearSplitQuad (MolaMesh molaMesh, float minSplitWidth=0f, float maxSplitWidth=0.5f, int dir=0) |
Split each face in a quad MolaMesh into three quads in one direction by specifying the range to generate random widths of the first two segments. | |
static MolaMesh | Relative (MolaMesh mesh, int startSplit, float minSplit1, float maxSplit1, float minSplit2, float maxSplit2) |
Split all faces in a MolaMesh based on relative parameters. | |
static MolaMesh | SplitFrame (MolaMesh molaMesh, float w) |
Create an offset frame with quad corners from each face in a Molamesh. | |
static MolaMesh | SplitFrame (MolaMesh molaMesh, List< float > wList) |
Create an offset frame with quad corners from each face in a Molamesh by specifying individual offset distances. | |
static MolaMesh | SplitOffset (MolaMesh molaMesh, float offset) |
Offset each face in a MolaMesh by a distance. | |
static MolaMesh | SplitOffset (MolaMesh molaMesh, IList< float > offsetList) |
Offset each face in a MolaMesh by specifying individual distances for each face. | |
static MolaMesh | SplitRoof (MolaMesh molaMesh, float height=0f) |
Extrudes all faces in a MolaMesh into pitched rooves. | |
static MolaMesh | SplitRoof (MolaMesh molaMesh, List< float > heightList) |
Extrude each face in a MolaMesh into pitched rooves by specifying individual extrusion heights for each face. | |
A collection of methods to applay subdivision rules to a MolaMesh.
Apply CatmullClark algorithm to a MolaMesh.
mesh | A MolaMesh |
Extrudes the all faces in a MolaMesh straight by a single distance height.
molaMesh | A MolaMesh |
height | Extruding height |
capTop | Wether to cap the top or not |
|
inlinestatic |
Extrudes the all faces in a MolaMesh straight by a list distance height.
The list length must much the face count.
molaMesh | A MolaMesh |
height | A list Extruding height |
capTop | A list of bool to decide Wether to cap the top or not |
|
inlinestatic |
Extrudes the all faces in a MolaMesh along a list of directions and by a list distance height.
The list length must much the face count.
molaMesh | A MolaMesh |
directions | A list of Vec3 |
heights | A list Extruding height |
capTops | A list of bool to decide Wether to cap the top or not |
|
inlinestatic |
Extrudes the all faces in a MolaMesh along a direction by a single distance height.
molaMesh | A MolaMesh |
direction | A Vec3 for direction |
height | Extruding height |
capTop | Wether to cp the top or not |
|
inlinestatic |
Extrudes all face in a MolaMesh tapered like a window by creating an offset face and quads between every original edge and the corresponding new edge.
molaMesh | A MolaMesh |
height | Extruding height |
fraction | A relative value |
capTop | A bool to decide Wether to cap the top or not |
|
inlinestatic |
Extrudes all face in a MolaMesh tapered like a window by creating an offset face and quads between every original edge and the corresponding new edge.
molaMesh | A MolaMesh |
heights | A list of extruding height |
fractions | A list of relative values |
capTops | A list of bool to decide Wether to cap the top or not |
Extrude each face in a MolaMesh to a new point offset from its center by a distance along the normal vector of the face and create triangular faces from each edge to the point.
molaMesh | The MolaMesh |
height | Extruding height |
Extrudes each face in a MolaMesh to the center point moved by height normal to the face and creating a triangular face from each edge to the point.
molaMesh | The MolaMesh |
heightList | A list of extruding height |
Splits all triangle or quad faces in a MolaMesh into regular grids.
molaMesh | A MolaMesh |
nU | Division count on U direction |
nV | Devision count on V direction |
splits all triangle or quad faces in a MolaMesh into regular grids
molaMesh | A MolaMesh |
nU | A list of int U |
nV | A list of int V |
///
nU | Division count on U direction |
nV | Devision count on V direction |
Subidivide each face in a MolaMesh into cells with absolute size.
molaMesh | A MolaMesh |
x | Size on U direction |
y | Size on V direction |
|
inlinestatic |
Subidivide each face in a MolaMesh into cells with absolute size.
molaMesh | A MolaMesh |
x | A list of size on U direction |
y | A list of size on V direction |
|
inlinestatic |
Extrudes all face in a MolaMesh tapered like a window by creating an offset face and quads between every original edge and the corresponding new edge.
molaMesh | A MolaMesh |
height | Extruding height |
fraction | Relative value of how much the result is tapered |
capTop | Wether to cap the top or not |
by specifying the range to generate random widths of the first two segments.
molaMesh | A MolaMesh |
borderWidth1 | An absolute distance from one side of border |
borderWidth2 | An absolute distance from one side of border |
dir |
|
inlinestatic |
Split each face in a quad MolaMesh into three quads in one direction by specifying the max width of the segments.
molaMesh | |
maxSplitWidth | |
dir |
|
inlinestatic |
Split each face in a quad MolaMesh into three quads in one direction by specifying the range to generate random widths of the first two segments.
molaMesh | |
minSplitWidth | |
maxSplitWidth | |
dir |
|
inlinestatic |
Split all faces in a MolaMesh based on relative parameters.
mesh | A MolaMesh |
startSplit | Choose U or V as starting direction |
minSplit1 | min relative parameter on the first direction |
maxSplit1 | max relative parameter on the first direction |
minSplit2 | min relative parameter on the second direction |
maxSplit2 | max relative parameter on the second direction |
Create an offset frame with quad corners from each face in a Molamesh.
Only work for convex shapes.
molaMesh | The MolaMesh |
w | The relative value |
Create an offset frame with quad corners from each face in a Molamesh by specifying individual offset distances.
Only work for convex shapes.
molaMesh | The MolaMesh |
wList | A list of relative value |
Offset each face in a MolaMesh by a distance.
Only work for convex shapes.
molaMesh | A MolaMesh |
offset | The offset distance |
Offset each face in a MolaMesh by specifying individual distances for each face.
Only work for convex shapes.
molaMesh | A MolaMesh |
offsetList | A list of offset distance |
Extrudes all faces in a MolaMesh into pitched rooves.
molaMesh | A MolaMesh |
height | Extruding height |