scieee AI-readable full text Open interactive document viewer

Simulation of mechanical weathering for modeling rocky terrains

Mateos Arlanzón, Diego

Abstract

Synthetic terrains play a vital role in various applications, including entertainment, training, and simulation. While significant progress has been made in terrain generation, existing methods often focus on large-scale features, relying on 2D elevation maps to model them. However, rocky terrains like those found in alpine environments have many detail features like sharp ridges, loose blocks or overhangs that are poorly represented in this maps, so it is common to model them using textures. Instead, in this project, we aim to generate plausible rocky geometry on top of existing 3D models. We propose a method based on a simplified simulation of mechanical erosion processes commonly found in high altitude terrains such as percolation and freeze-thaw weathering. The process can be controlled through a series of intuitive parameters and its iterative nature lets an artist apply it multiple times until sufficient erosion is achieved. Additionally, we developed an artist-friendly tool integrated as add-on into Blender, which is a widely used 3D modeling software. This rich integration streamlines their workflow, eliminating the need for external applications and facilitating direct interaction with the model geometry before and after the simulated erosion.

Full text

id178566   SIMULATION OF MECHANICAL WEATHERING FOR MODELING ROCKY TERRAINS DIEGO MATEOS ARLANZÓN Thesis supervisor: OSCARARGUDOMEDRANO(DepartmentofComputerScience) Thesis co-supervisor: ANTONIOSUSINSANCHEZ(DepartmentofMathematics) Degree:MasterDegreeinInnovationandResearchinInformatics(ComputerGraphicsandVirtual Reality) Master's thesis Facultat d'Informàtica de Barcelona (FIB) Universitat Politècnica de Catalunya (UPC) - BarcelonaTech 19/10/2023 Abstract Synthetic terrains play a vital role in various applications, including entertainment, training, and simulation. While significant progress has been made in terrain generation, existing methods often focus on large-scale features, relying on 2D elevation maps to model them. However, rocky terrains like those found in alpine environments have many detail features like sharp ridges, loose blocks or overhangs that are poorly represented in this maps, so it is common to model them using textures. Instead, in this project, we aim to generate plausible rocky geometry on top of existing 3D models. We propose a method based on a simplified simulation of mechanical erosion processes commonly found in high altitude terrains such as percolation and freeze-thaw weathering. The process can be controlled through a series of intuitive parameters and its iterative nature lets an artist apply it multiple times until sufficient erosion is achieved. Additionally, we developed an artist-friendly tool integrated as add-on into Blender, which is a widely used 3D modeling software. This rich integration streamlines their workflow, eliminating the need for external applications and facilitating direct interaction with the model geometry before and after the simulated erosion. •Keywords: Computer Graphics, 3D Modelling, Computer Simulation, Rocky Terrains, Mechanical Weathering. i Acknowledgements I would like to thank my supervisors, Oscar and Toni, for their continuous support and valuable feedback. I am also thankful to all my family and friends for always being there for me, specially Miriam, your personal support is truly invaluable. ii Contents Abstract i Acknowledgements ii Acronyms and Abbreviations 1 1 Introduction 2 1.1 Motivation................................. 2 1.2 Objectives................................. 3 1.3 Contribution................................ 3 1.3.1 Erosion simulation . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3.2 Blenderextension......................... 5 2 Background 6 2.1 Mountainous landscapes . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.1.1 Erosionprocesses......................... 8 2.1.2 Freeze-thawcycle......................... 8 2.2 Digitalterrains .............................. 9 2.2.1 Flowanalysis ........................... 11 2.3 Solid objects decomposition . . . . . . . . . . . . . . . . . . . . . . . 12 2.3.1 Tetrahedral cells . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.3.2 Voronoicells............................ 12 2.3.3 Constructive solid geometry . . . . . . . . . . . . . . . . . . . 13 3 Previous Work 14 3.1 Mechanical weathering in applied sciences . . . . . . . . . . . . . . . 14 3.2 Synthetic terrains in Computer Graphics . . . . . . . . . . . . . . . . 17 3.3 Discussion................................. 22 iii 4 Method 23 4.1 Overview.................................. 23 4.2 Fracture structure generation . . . . . . . . . . . . . . . . . . . . . . 24 4.2.1 Input points extraction and transformation . . . . . . . . . . . 25 4.2.2 Voronoi cells geometry computation . . . . . . . . . . . . . . . 26 4.2.3 Cells adjacency information and surface clipping . . . . . . . . 27 4.2.4 Links generation and attributes preprocessing . . . . . . . . . 29 4.2.5 Links adjacency information . . . . . . . . . . . . . . . . . . . 33 4.2.6 Cells initial state . . . . . . . . . . . . . . . . . . . . . . . . . 35 4.3 Erosion simulation process . . . . . . . . . . . . . . . . . . . . . . . . 38 4.3.1 Water infiltration . . . . . . . . . . . . . . . . . . . . . . . . . 40 4.3.2 Water propagation . . . . . . . . . . . . . . . . . . . . . . . . 41 4.3.3 Waterabsorption......................... 44 4.3.4 Linkerosion............................ 47 4.3.5 Cell detachment computation . . . . . . . . . . . . . . . . . . 49 4.3.6 Stop propagation conditions . . . . . . . . . . . . . . . . . . . 54 5 Implementation 56 5.1 Overview.................................. 57 5.2 Fracture structure generation . . . . . . . . . . . . . . . . . . . . . . 58 5.3 Erosion simulation process . . . . . . . . . . . . . . . . . . . . . . . . 65 5.4 Additionalutilities ............................ 67 6 Results 72 6.1 Specifications ............................... 72 6.2 Fracture structure generation . . . . . . . . . . . . . . . . . . . . . . 73 6.2.1 2Dhillmodel ........................... 73 6.2.2 3Dhillmodel ........................... 77 6.2.3 3D terrain chunk . . . . . . . . . . . . . . . . . . . . . . . . . 79 6.3 Erosion simulation process . . . . . . . . . . . . . . . . . . . . . . . . 81 6.3.1 Erosion force control . . . . . . . . . . . . . . . . . . . . . . . 81 6.3.2 Entry water direction . . . . . . . . . . . . . . . . . . . . . . . 82 6.3.3 Resistancefield .......................... 84 6.3.4 3Dhillmodel ........................... 85 6.3.5 3D terrain chunk . . . . . . . . . . . . . . . . . . . . . . . . . 88 6.4 Limitations ................................ 90 6.4.1 Method-related .......................... 90 iv 6.4.2 Implementation-related . . . . . . . . . . . . . . . . . . . . . . 91 7 Conclusion 94 7.1 FutureWork................................ 95 v Acronyms and Abbreviations 2D Two-dimensional 3D Three-dimensional AABB Axis-Aligned Bounding Box API Application Programming Interface BFS Breadth-first search CGI Computer-Generated Imagery CPU Central Processing Unit CSG Constructive solid geometry DEM Digital Elevation Model GPU Graphics Processing Unit UI User Interface VR Virtual Environment 1 Chapter 1 Introduction 1.1 Motivation Synthetically generated or enhanced terrains are a fundamental part of virtual scenes, which are widely used across industries like entertainment, training or simulation. Researchers have made progress in creating synthetic terrains using three primary methods: fractal modeling, physical erosion simulation, and synthesis from image samples. However these methods have limitations, the main one stems from a focus on the generation of large-scale terrain features like mountains and valleys. To capture these landforms they rely in 2D elevations maps, which is a representation that lacks vertical resolution and therefore cannot represent features like overhangs, arches or caves. Simultaneously, these maps usually cover large portions of terrain with limited precision, consequently producing a poor representation of some detail features commonly found in rocky terrains such as sharp ridges, loose blocks or steep cliffs. Representing truly 3D features like those found in the surface of rocky terrains high detail remains a challenge. These complex rocky structures emerge from a variety of physical processes, including weathering from percolation and freeze-thaw cycles. Furthermore, this formations are influenced by the specific material involved, such as limestone, granite or dolomite. Recent physically inspired techniques have been proposed, but most of them are tailored for low altitude fluvial or coastal terrains were erosion tends to be smoother. In contrast, many of the rock formations found in alpine environments present straight cuts and polyhedral shapes. Furthermore, most solutions do not offer artists a tool to integrate into their workflows, instead the authoring process is done in an unfamiliar external applica- 2 Chapter 1. Introduction 3 tion. Once a final export is generated, artists may find it challenging to edit the model in alignment with the appropriate generation process. This disconnection between simulation and editing can limit the creative flexibility and efficiency of artists when working with terrain models. 1.2 Objectives The primary objective of this project is to generate plausible rocky geometry on top of existing 3D models, which could come from 2D elevation maps or any already enhanced technique. We base our method specifically in a simplified simulation of mechanical erosion processes common in high altitude terrains such as percolation and freeze-thaw weathering. We also seek to develop an intuitive tool to tune the parameters and interact with the simulation inside a popular 3D modelling software, in this case Blender, which is an open source alternative. This environment will let the artists leverage on their past experience with such kind of software, and so speed up the process of learning how to use the integrated interface. On top of that, having a streamlined workflow inside a single application empowers the artist with a cohesive simplified experience, compared to going back and forth between programs and import/export steps. 1.3 Contribution Our research contributes to the field of terrain generation and 3D modeling by addressing some challenges associated with the creation of realistic rocky features. We propose a method to enhance models with a physically inspired erosion simulation. We also produced a user-friendly tool which is totally integrated inside a popular 3D modelling software (Blender). Overall, this tool allows artists to apply the erosion simulation to a model interactively. All of the parameters can be intuitively tuned to tailor the erosion and achieve satisfying results. This eroded models could potentially improve the quality and authenticity of virtual scenes which, as mentioned, are used in diverse applications across different industries. The key contributions of this work are summarized in the following subsections. 10 2.2. Digital terrains We do not use a DEM (Digital Elevation Model) directly in our method nor implementation, but wanted to discuss them as they are widely used in the literature for generating synthetic terrain for virtual scenes. There are three broad methods for their generation: procedural generation methods, which rely on algorithms (noise, faulting, subdivision, and the like) that do not directly emulate erosive processes; simulation techniques, which iteratively apply computer simulations of geomorphological processes, and example-based methods, which extract and combine scanned data of real-world terrains [Galin et al., 2019]. Our method would work on a 3D model produced from a DEM, yet as a future work we would like to integrate them due its said frequent usage and utility. Figure 2.5: Comparison between real data and multiple DEM synthesis approaches. Figure from [Argudo et al., 2019]. Chapter 2. Background 11 2.2.1 Flow analysis One of the scientific applications of DEM is its usage for modeling water flow in hydrology analysis, which we touch briefly in our methods as we simulate internal water propagation. Most notably is the concept of flow metric, which is a rule that defines how water propagates its flow through a discrete set of terrain cells. For example distributing the amounts accordingly to the slope of terrain, or transferring all the water in one direction randomly picked with a probability weighed by the slope itself. Figure 2.6: Visualization of the distribution of water flow following [Holmgren, 1994] method that distributes the water to one or more, and possibly all, of its 8 neighbouring cells. To do so, the amount of flow apportioned to each neighbour is a function of the slope that neighbour and a user-specified exponent to modulate it. Figure from [Barnes, 2016]. 12 2.3. Solid objects decomposition 2.3 Solid objects decomposition In order to produce fractures, we start off our method by splitting the input model into cells. The shape of this shards could be of any convex decomposition, being the simplest one a regular 3D voxel grid. But such a regular array of cells takes a lot of space in memory and the final surface would have to be smooth to avoid a jagged appearance, hence losing sharp edges. 2.3.1 Tetrahedral cells Another simple convex decomposition would be splitting the model intro tetrahedral cells. This can be done following an incremental Delaunay method, detailed in chapter 20 from book [Fortune, 1997]. In this case, the model would be divided in approximately regular shards and can be computationally expensive. Figure 2.7: Image produced with the Blender add-on by [Muller, 2022], which shows the a trahedralization of the known Suzzane monkey model. 2.3.2 Voronoi cells In our method we decided to use a Voronoi tessellation to produce the initial cells. This decomposition depends on a given set of input points, so we can reduce the amount to achieve faster but less detailed decompositions. Another benefit of Voronoi is the fact that cells have a more natural rocky appearance than, for example, the mentioned regular tetrahedra. Chapter 2. Background 13 Figure 2.8: From [Rycroft, 2009], (a) A small sample Voronoi tessellation for a group of particles in two dimensions. The blue lines partition the domain into cells of space that are closer to one particle than any other. The blue lines are the perpendicular bisectors between neighboring particles. (b) A three-dimensional Voronoi tessellation for a small particle packing in a cube. The blue lines show the edges of the Voronoi cells, and were computed using this software package. (Images created with [POV-Ray, 2021].) 2.3.3 Constructive solid geometry CSG (Constructive Solid Geometry) in itself is not an object decomposition, but a technique used in 3D modelling to create complex shapes by combining simple geometric primitives, such as cubes, spheres, cones, and cylinders. These combinations are performed using Boolean operations such as union, intersection, and difference. As we will show in the previous work chapter, this technique can also be mixed with terrain generation to add additional features. In out method, we use it to clip Voronoi cells inside the original model. Figure 2.9: CSG objects can be represented by binary trees, where leaves represent primitives, and nodes represent operations. In this figure, the nodes are labeled ∩for intersection, ∪for union, and −for difference. Figure from [Foley, 1996]. Chapter 3 Previous Work In this chapter we comment on all previous related work we found in the literature. A first section will focus on mechanical weathering process from the perspective of geomorphology and applied sciences. Then we shift the focus to our main field of study, Computer Graphics (also known as CG). We explain and compare proposed methods to generate synthetic terrains and specifically those that aim to simulate realistic erosion with a physically inspired approach. Finally we have a discussion regarding the limitations found in the methods proposed in CG. 3.1 Mechanical weathering in applied sciences The breakdown of rocks by freezing, or frost cracking, has been a subject of great interest to geomorphologists for many years. Frost action has been considered to be of paramount importance in the development of landscapes in periglacial environments. A theoretical model of the fracture of rock during freezing is presented in [Walder and Hallet, 1985], which can predict crack-growth rates compatible with empirical data. A case study of long-term frost weathering and rockwall erosion in the southeastern Swiss Alps can be seen in [Matsuoka, 2008], which details several observations from 1994 to 2006. An extensive rock slope monitoring campaign was done in [Hasler et al., 2012] at the Swiss Alps. It relies on empirical findings to identify that most erosion occurs during summer due to water melted in clefts containing perennial ice. Additionally, it also shows how the thawing related processes can affect stability within hours or weeks, basically, short-term stability minima may activate rock masses subject to the slow changes and lead to acceleration and failure. 14 Chapter 3. Previous Work 15 Figure 3.1: Transition to snow free conditions in the detachment zone around C2 during initial melting 2010. The time series with crack meter expansion (CR) and temperatures (T1, T6) from C2 contains indications (a-c) of time when pictures are taken. Image from [Hasler et al., 2012]. A comprehensive review of advances in computational fracture mechanics of rock is provided in [Mohammadnejad et al., 2021]. It delves deeply into fracture mechanics and their effects at different micro to macro scales. Furthermore, it classifies numerical methods mainly into continuum and discontinuum formulations. Continuum-based methods discretise the domain into elements and the domain is treated as a single continuous body using a mathematical formulation involving a constitutive law, balance principles, boundary conditions and initial conditions. The main continuum methods are finite element method (FEM), finite difference method (FDM), boundary element method (BEM), scaled boundary finite element method (SBFEM), extended finite element method (XFEM) and mesh-less methods. Discontinuum-based methods are relatively new, and they model the domain as a collection of discrete bodies that can move, rotate and interact. The main discontinuum methods are lattice model (LM) and molecular dynamics (MD). A full GPU-accelerated implementation using DEM to to simulate rock fracturing processes can be found in [Liu et al., 2021]. 16 3.1. Mechanical weathering in applied sciences Figure 3.2: Different scales of observations in rock fracture analysis. Image from [Mohammadnejad et al., 2021]. Applied sciences do not limit the study of material fracturing due to mechanical weathering only to natural formations. There are countless civil studies regarding material resistance to erosion in human made structures. Furthermore, there also studies on indirect damages erosion can produce, for example, the comprehensive review [Volkwein et al., 2011] studies structural protection against rockfalls and their characterization. Figure 3.3: The left image shows the multiple processes that contribute to the event of a rockfall, including freezing and thaw cycles. The right image depicts a rockfall hazard zones. Both images from [Volkwein et al., 2011]. Chapter 3. Previous Work 17 3.2 Synthetic terrains in Computer Graphics Some methods like [Gousie and Lord, 2023] simply aim to improve the under-laying DEM representation to support additional composed elevation data for real or synthetic terrains. Figure 3.4: An arch shown in a small canyon within a larger terrain surface originated from a regular DEM. Images from [Gousie and Lord, 2023]. Other method to model overhanging structures is presented in [Peytavie et al., 2009], which uses a hybrid model that combines a volumetric discrete data structure that stores the different materials and an implicit representation for sculpting and reconstructing the surface of the terrain. The resulting terrain is very smoothed out, but this suits very well coastal rocky formations. Figure 3.5: Figures from [Peytavie et al., 2009] that showcases an overview of their terrain modeling system and how it evaluates the integration domain with spherical kernels. 18 3.2. Synthetic terrains in Computer Graphics An optimized work related to [Peytavie et al., 2009] is presented in [Paris et al., 2019]. They propose a novel paradigm for representing and generating volumetric terrain based only on implicit surfaces. They use construction trees (see 2.3.3) to produce all kinds of terrain features, including caves and overhangs. They also add a physically based erosion simulation inspired in water invasion percolation processes, achieving realistic coastal terrains by using negative construction primitives. Both the generation and simulation can be tailored to author diverse landforms. Figure 3.6: Figures from [Paris et al., 2019] that showcases some cliffs produced with their system, after applying simulated sea erosion to an initially static DEM. Again using construction trees as in [Paris et al., 2019], [Paris et al., 2020] expands even further the method originally proposed in [Peytavie et al., 2009]. In this case, they add fractures to the bedrock in order to create a set of tiling blocks which increase the detail of the surface a lot. It also offers micro-detail in the form of noise-based displace texture maps. The shape of the blocks can adapt to different patterns recognizable in geomorphology such as polyhedral, equidimensional, tabular or columnar. Figure 3.7: Figures from [Paris et al., 2020] that showcases a direct comparison with [Peytavie et al., 2009], samples of the surface micro detail, and also a resulting block with visual cracks and crevices. Chapter 3. Previous Work 19 In [Paris et al., 2021], they rely on the same concept of adding eroded features using construction trees, but this time the put the focus on generating complex cohesive karstic networks. Karts are a type of landscape formed by the dissolution of highly soluble rocks (generally limestones). Their method computes a gridless anisotropic shortest path through the material according to a resistance field data and other properties of the terrain. Overall, they use signed distance function to profile the caves and form a construction tree combining primitives with blending and warping operators. Figure 3.8: Figures from [Paris et al., 2021] that showcases a globally calculated karst network and the produced terrain. There are more physically inspired methods to produce erosion discussed in CG. For example [Krs et al., 2020] proposes shape modifications based on an interactive particle based wind erosion. Another example is [Jones et al., 2010], which produces weathering on concave rock formations using only a curvature stimation. Overall there is a lengthy survey on aging and weathering phenomena in computer graphics presented in [Merillou and Ghazanfarpour, 2008] which goes from rusting to fruit decay. In terms of fracturing in general, there is countless literature on the matter. For example, [Yan and Wu, 2023] proposes a fracture method starting from Voronoi shaped cells and simulating bonding forces based on peridynamics, which are spring forces connecting nearby cells together. Another recent example would be [Sellan et al., 2023], which proposes a base fracture pattern that improves on Voronoi and seems more natural for brittle fractures. 26 4.2. Fracture structure generation 4.2.2 Voronoi cells geometry computation With the gathered input points, we proceed on to build the Voronoi cells. We propose to use a cell-based computation such as the one originally developed in [Rycroft, 2009]. Instead of calculating the Voronoi diagram as a single object by generating a mesh that divides a given set of points into cells, a more natural approach is to associate an individual Voronoi cell with each point and compute them separately (see figure 4.4). This perspective simplifies the computation of a selected subset of Voronoi cells, while also being more flexible to address specific scenarios for boundary conditions. It also facilitates the straightforward calculation of cell-based statistics, including cell volumes, areas, count of faces per cell, etc. Figure 4.4: Showcasing a central magenta point and five local neighboring yellow points in (a), points farther away will have no effect in the final shape. Through (b)-(f) construction of the Voronoi cell of the central point, shown as a series of intersections of half-spaces, where each is defined by the central point and one of its neighbors. The completed Voronoi cell of the central point shown in (g). Figure from [Lazar et al., 2022]. Formally, given the 3D space R3and the set of mpoints P(eq. 4.1), the Voronoi cell of a point piis the volume defined as: Voronoi(pi) = {x∈R3|d(x, pi)≤d(x, pj),∀pi, pj∈P, pi=pj}(4.2) For every point pithere is a corresponding cell ci, yielding the set of mcells C: C={c1, c2, ..., cm}={Voronoi(p1),Voronoi(p2), ..., Voronoi(pm)}(4.3) We let the user displace the bounding box planes by some margin, this helps preventing points laying outside the volume due to the optional jittering introduced in the previous step. Only points inside the volume end up generating Voronoi cells, and there are other edge cases that must be handled coherently. This is the case with uniformly placed points such as the ones originated from grids, where is fairly common to find that the boundary of multiple cells should meet at an exact single point but due to floating point precision asymmetries and additional vertices tend to appear (example illustrated in figure 4.5). Chapter 4. Method 27 Figure 4.5: Typical case shown in (a) where three Voronoi cells in blue originated from three points in yellow meet at single vertex in two dimensions. Special case in (b) where four Voronoi cells meet at a vertex that is equidistant from four points, floating point errors could lead to an additional small edge represented in red. Figure from [Lazar et al., 2022]. Figure 4.6: Produced Voronoi cells from the input points and the model in figure 4.3. The cells would normally touch but here we represent them are scaled down a bit to produce wide gaps between them for illustrative purposes. 4.2.3 Cells adjacency information and surface clipping Two Voronoi cells are considered neighbors if, and only if, they share a face. This is the case in 3D space, in a 2D Voronoi diagram this common face translates to an edge as seen in figure 4.5. When computing cells individually as described in the previous section, all final faces of a cell are derived from bisecting planes sitting exactly halfway between the central point and one of its local neighbours. But not all points considered as neighbours will end up generating a face, some of the generated planes may supersede others. For this reason is best to analyze the final geometry per cell and find its adjacent cells per face. 28 4.2. Fracture structure generation Given the set of cells Cdefined in equation 4.3, every cell cihas a corresponding neighbouring cell for each one of its faces fnin the set Fci. The neighbour per face is searched using the corresponding subset of neighboring points Pciof ci: Neighbour(ci, fn) = cj∈Cs.t. fn⊆BisectingPlane(pi, pj), ci=cj(4.4) But this definition does not take into account the external boundary, in this case a basic axis-aligned bounding box (AABB) wrapping the original model. The result is that some faces of the outer cells will not be derived from a neighbouring cell, and instead be produced by a cut with a boundary plane. On top of that we want to clip the cells precisely within the volume of the original model, this is known as a Boolean intersection which is a common operator used in CSG as described in chapter 2 section 2.3.3. To achieve this we have to cut all cells individually with the model faces. But before clipping, we also allow the user to add some marginal displacements to these planes along their normal. This gives some room for flexibility around input points laying close to model surface, similar to the margin for boundary planes described in the previous step. As a side-note, some planes from the AABB will be superseded by model faces and therefore end up not cutting any cell. We refer to the planes that cut the cells as walls. This set Wis a union of the displaced AABB planes FAABB and displaced model faces Fmodel defined as: WAABB =Displace(FAABB, marginAABBu) Wmodel =Displace(Fmodel, marginModelu) W=WAABB ∪Wmodel (4.5) Figure 4.7: A central point and its Voronoi cell in (a). The cell is represented as a collection of vertices and edges that forms an arbitrary convex shape. Clipping by an additional plane as shown in (b) results in an intersection of the cell with an additional half-space, whose boundary is shown in magenta. The final Voronoi cell displayed in (c). Figure from [Lazar et al., 2022]. Chapter 4. Method 29 We extend the definition for the neighbour of cell ciat its face fn(eq. 4.4), to a set where each face either connects with another cell or a wall wkfrom W(eq. 4.5). We define two split potentially empty sets and then merge them together: Neighbour(ci, fn)C−→C={cj∈C|fn⊆BisectingPlane(pi, pj), ci=cj} Neighbour(ci, fn)C−→W={wk∈W|fn⊆wk} Neighbour(ci, fn) = Neighbour(ci, fn)C−→C∪Neighbour(ci, fn)C−→W (4.6) With this complete relationship, we build the set of neighbouring cells of ci across its faces Fci. We flatten all these sets with a singe element into a simple one: Neighbours(ci) = [Neighbour(ci, fn),∀fn∈Fci(4.7) Figure 4.8: Final Voronoi cells produced by cutting the ones in figure 4.6 with the faces from the original model in figure 4.3 representing a simple 2D hill. Also, the adjacency between cells is illustrated reusing the same gap and adding thick red lines connecting faces neighbouring faces. Tiny lines in a high contrast shade green show the connection of outer faces produced by cuts with wall planes. There seems to be many at the top, but these are individual tiny model faces whose detail is lost due to scaling and the size of the image. 4.2.4 Links generation and attributes preprocessing Now that we have the cells and their adjacency information we can build the set of links, which are the dynamic bonds connecting cells that will be eroded by the simulation. Basically, these links will match the colored lines shown in figure 4.8 but not just for the sake of visualization, they are a key internal part of the fracture structure that stores multiple attributes required for the simulation. The main attribute is the erosion state, which we opt represent in the form of life indicating how sane a link is: life = 1 no erosion at all, life = 0 completely eroded. 30 4.2. Fracture structure generation The set of links Lare the undirected edges of the graph GCconnecting all cells from Cwith their neighbours (eq. 4.7), either other cells or walls from W: LC−→C={(ci, cj)∈C×C|cj∈Neighbours(ci)} LC−→W={(ci, wk)∈C×W|wk∈Neighbours(ci)} L=LC−→C∪LC−→W GC= (C∪W, L) (4.8) Then every link within the structure stores the following values, some of these attributes are calculated during the generation step: •Life: Erosion state where life = 1 no erosion at all, life = 0 completely eroded. The initial value of life is 1.0. •References: References to either cells or walls that the link is connecting, and also to the exact faces. •State: Distinction between link connecting two cells (Solid), a cell to wall (Wall), or a cell to a disconnected cell (Air). Basically it is a summary taking into account type of references and life states. •Position: World position at the center of the touching faces, or single face in case of a cell to link. •Direction: World direction of the link, which is the normal of any of the faces. A reference to the face where the normal is taken from is stored too. •Area: Area of the link surface, which is the area of any of the faces that the link is connecting. •Resistance: Opposition to erosion the link inherently presents. Simplified attribute to models physical properties of the material supposedly forming the original model, also tries to present variations as could be observed within substrates in nature. Calculation explained in detail later in this subsection. We strive to preprocess as much data as possible prior to the simulation. In order to work within relative intervals for following link attributes, we compute several global properties of the whole link set: •Position: minimum and maximum, mainly for overall information about the model and built links. Chapter 4. Method 31 •Area: minimum, maximum and average, for overall information and also to be able to calculate relative area or area factor with respect to the average. •Resistance: (like Area) minimum, maximum and average, for overall information and to be able to calculate relative resistance or resistance factor over the average. Figure 4.9: The equally thick red lines from figure 4.8 could represent the life of an initial set of links without erosion. This figure showcases two of the precalculated values. In the case of the top image, we show the direction of each link with a 2D gradient where the upwards and sideways directions are represented with green and red respectively. In the bottom image, we represent the normalized area of each link, encoded with a 1D gradient from white to red. Prior to this step, the user has control over the definition of the resistance field that gives links their mentioned resistance attribute. We leverage the physical fidelity of the resistance property to a well defined field by the user. Nonetheless, we propose two simple 2D resistance fields that help illustrate the method and provide very clear insight of its effect in potential results. These sample fields could be extended to 3D and encapsulate a layer-based rocky soil. 32 4.2. Fracture structure generation Moreover, there is also an indirect control over other link attributes such as area or position distribution. These properties stem from the the shape of the cells, which is affected by user-configured parameters described in previous sections. For example, increasing the amount of points inside a given volume would yield more but smaller cells, therefore producing a lower average area per face. Figure 4.10: Two sample 2D resistance fields. In (a) we model a repeating layers pattern, whereas in (b) we model a repeating pockets pattern. Both graphs encode with color the normalized resistance over a region of 2D space. Figure created with numpy [Harris et al., 2020] and matplotlib [Hunter, 2007]. Figure 4.11: The top image displays the shards and links over the resistance field from figure 4.10 (a). The field is only sampled once for each link at its center position, this results in a single resistance value per link which can be appreciated in the bottom image as a flat color per link. The resistance is encoded in both images with a 1D gradient from black to brown. Chapter 4. Method 33 4.2.5 Links adjacency information In preparation for the erosion simulation, a final required step involves determining the adjacency information between the created links. Similar to the way cells are linked to adjacent cells through their shared faces, links are also connected to other links designated as their neighbors. This adjacency relationship will be later used in the water propagation stage of the simulation to trace potential paths and their associated properties. Each link represents a unique connection between two faces, so in their case there are no shared faces across links. But instead, we can draw a connection between links when any of their faces are topological neighbours. Figure 4.12: Topological relationships between the elements of a mesh boundary representation. We make use of the mapping from a given face to its neighbouring faces. Figure adapted from [Andujar, 2021]. As stated, a link ladraws a connection between two neighbouring cells Cla∗= {cla 1, cla 2}, through their faces Fla∗={fla 1, fla 2}respectively. But as defined in equation 4.4, a link may connect a cell to a wall rather than two regular cells. In such cases, we opt to exclude the wall represented by wlafrom both Claand Fla, thus potentially retaining only a single cell and face within these sets: Cla={cla∈Cla∗|cla/∈W} Fla={fla∈Fla∗|fla/∈W}(4.9) We can group the neighbouring faces of a set by merging the sets of topological neighbours of its faces: 34 4.2. Fracture structure generation NeighbourFaces(la) = [NeighbourFaces(fla),∀fla∈Fla(4.10) Now the neighbours of a link lacan be defined as the set of links which contain any face from Flainside their set of neighbouring faces: Neighbours(la) = {lb∈L|Fla∩NeighbourFaces(lb)=∅, la=lb}(4.11) Figure 4.13: Zoomed image displaying the various named elements on top of a real cell from our 2D hill model. Following eq. 4.11, the links laand lbare neighbours. One of the faces in Fla(drawn in black double strips) is contained in the topological neighboring faces of lb(drawn in dashed orange lines). Similar to eq. 4.8, we can define an undirected graph GLconnecting all links Lwith their neighbours, although in this case there is no information stored in the edges: LN ={(li, lj)∈L×L|lj∈Neighbours(li), li=lj} GL= (L, LN)(4.12) Chapter 4. Method 35 Figure 4.14: This image adds another layer on top of the figure 4.8, representing the adjacency between links with slender white lines. The composition faithfully portraits how GLis a graph connecting edges of GC. The zoomed image shows the bottom-left part of the model where clafrom figure 4.13 is located, it also provides additional detail on the interconnections. 4.2.6 Cells initial state At this point the supporting fracture structure has been fully generated, we have both cells and links along with their adjacency information and attributes calculated. The user is free to tweak the input parameters of the process to tailor the generated structure for their needs, for example, using a larger amount of input points to yield more and smaller cells that would achieve an increased detailed erosion. However, depending on the edited user parameter, the whole generation process may have to be repeated entirely. In the mentioned example, any minuscule change on the input point may drastically change the shape and topology of the cells and therefore affect the outcome set of links. 42 4.3. Erosion simulation process Similar to the entry link selection, in GetNextLink (algo.1) we randomly select a candidate from the set of neighbours of lCurrent, in this case with a probability weighted by an inverse factor derived from the resistance each link would oppose to the flow of water. This resistance strongly depends on the life of the candidate link and the value of the global resistance field evaluated at its position. The user is able to weight the impact of the global resistance field with an input parameter. Algorithm 4 FlowResistance() function Input: l, PARAMS(user) life ←max(l.life, 0.0) ▷Clamp negative life r←l.resistance ∗PARAMS.resistWeight ▷ Already precalculated return life ∗r The resistance is already precalculated per link as described in 4.2.4, the value is also expected to be normalized. As an example, the following algorithm is be the parametric function used to generate the field shown in figure 4.10(a) and a few other ones. This field could be represented in others ways, e.g. a 3D texture. Algorithm 5 ResistanceField2D() function Input: x, y r←sin −1∗x+ 0.5∗y rNorm ←0.5∗r+ 0.5 return rNorm Again, parallel to the entry probability, the relative direction from lCurrent to the candidate link has an important impact too. In this case the water wants to follow the gravity direction, although in our simulation we opted to let the user customize it in order to adapt the system to any axis of orientation. The user can also add a threshold of minimum alignment which could be used to force some amount of slope for the water to flow. Algorithm 6 NextLinkProbability() function Input: l, lCurrent, , PARAMS (user) if StateBothCells(l, AIR) then ▷Ignore links between detached cells return 0 end if flowDir ←Normalized(lCurrent.pos −l.pos) a←VectorAlignment(flowDir, PARAMS.nextDir, PARAMS.nextMinAlign) r←FlowResistance(l, PARAMS) return a∗(1 −r) Chapter 4. Method 43 Figure 4.19: Zoomed in image showing a propagation path of depth 8 in a semitransparent shade of blue, no explicit stop condition other than the arbitrary depth. The path runs along the lines representing connections between neighboring links from figure 4.14. These lines now also show their slope encoded with a gradient from white to black, notably the water mostly always avoids a horizontal paths. Figure 4.20: Sample image of a water path, shown in an orange shade, which reaches again the surface of the model as part of its propagation. 44 4.3. Erosion simulation process Figure 4.21: A general image displaying a series of water paths of arbitrary depth in context with the resistance field. Mostly the water avoids high resistance paths when possible, nevertheless this configuration does not seem to have a drastic impact as most of the left side has low resistance. 4.3.3 Water absorption Some amount of water is absorbed during the propagation, the specific volume lost depends on the being link traversed. We model and combine two kinds of water absorption: one derived from the link resistance and another based on friction over the surface area, independent of the link opposition. The user has input parameters to weight the effect of each one. Moreover, the friction absorption weight is split for Solid and non-Solid links, to be able to model different rates of absorption for water flowing over internal or external surfaces. Given that the resistance of a link depends on its life too, broken links will let water run through them fairly freely. In contrast, the friction absorption only depends on the area, so some large links may end up absorbing more water via friction than small ones through resistance. Eventually, the absorbed quantity of water will be used to compute the link erosion. Chapter 4. Method 45 Algorithm 7 WaterAbsorption() function, used directly in algo.1 Input: lCurrent, waterCurrent, , PARAMS (user) wAbs ←0 if lCurrent.state != SOLID then wAbs ←lCurrent.areaFactor ∗PARAMS.waterAbsAir else wAbs ←lCurrent.areaFactor ∗PARAMS.waterAbsSolid r←FlowResistance(lCurrent, PARAMS) wAbs ←wAbs +r∗PARAMS.waterAbsResistance end if waterCurrent ←waterCurrent −wAbs if waterCurrent < 0then ▷Correct excessive absorbed amount wAbs ←wAbs +waterCurrent waterCurrent ←0 end if return waterCurrent, wAbs On top of this water absorption there is a random event to trigger a complete absorption of the rest of the volume. The user has input parameters to control the percentage of water when this check starts to happen and also the probability to continue given the amount of water left. There is also the possibility to absorb a relative extra volume instead of its entirety. This random event helps to model natural irregularities found in the material, while also providing help with the termination of paths with low amounts of water. These paths that reach a low energy state were probably not going to inflict anymore substantial damage to the links, hence skipping them improves performance without noticeable erosion differences. Algorithm 8 WaterAbsorptionRndEvent() function Input: waterCurrent, PARAMS (user) wAbs ←0 if waterCurrent < PARAMS.waterRndAbsMin then ▷Low enough water waterRelative ←waterCurrent / PARAMS.waterRndAbsMin rnd ←RandomFloat(0.0,1.0) if waterRelative * PARAMS.waterRndAbsContinueProb < rnd then wAbs ←waterCurrent ∗PARAMS.waterRndAbsAmount waterCurrent ←waterCurrent −wAbs end if end if return waterCurrent, wAbs 46 4.3. Erosion simulation process Figure 4.22: Enhancing paths shown in figures 4.19 and 4.21 with water being decreased absorbed along the path. Visually the blue lines representing the paths shrink adapt to the current water level. Chapter 4. Method 47 4.3.4 Link erosion The water absorbed by the material proportionally erodes each Solid link when traversing it, non-Solid links are already broken so they do not register more erosion. The damage inflicted to a link is distributed over its surface area, plus also weighted by an input parameter controlled by the user. When the life of a link reaches 0.0 a breakage is produced, this is registered and a detachment process is started. Algorithm 9 LinkErosion() function, used directly in algo.1 Input: lCurrent, wAbs, , PARAMS (user) breakage ←FALSE if lCurrent.state == SOLID then dmg ←wAbs ∗PARAMS.linkErosion dmg ←dmg /lCurrent.areaFactor ▷ Distribute damage over area lCurrent ←DegradeLink(lCurrent, dmg) if lCurrent.life ≤0.0 then breakage ←TRUE ▷ Detected breakage end if end if return lCurrent, breakage Analogue to the water random absorption event, there is a link breakage random event. The user has similar input parameters to control the minimum amount of life to start checking for the event and also the base probability a link has to prevail unbroken. Algorithm 10 LinkBreakageRndEvent() function Input: lCurrent, PARAMS (user) breakage ←FALSE if lCurrent.life < PARAMS.linkRndBreakMin then ▷Low enough life lifeRelative ←lCurrent.life / PARAMS.linkRndBreakMin rnd ←RandomFloat(0.0,1.0) if lifeRelative * PARAMS.linkRndBreakContinueProb < rnd then lCurrent.life ←0.0 breakage ←TRUE ▷ Forced breakage end if end if return lCurrent, breakage 48 4.3. Erosion simulation process Regarding these marginally low life links targeted by the random break event, in this case they oppose almost no resistance at all and therefore produce very little water absorption through resistance. This in turn, contributes to a lower link erosion causing some low life links to resist breakage for longer. Forcing some of these links to be broken a bit in advance makes sense in order to speed up the simulation of interesting detachment effects while only reducing tiny amounts of low remaining life for random links. Figure 4.23: This large image extends on the figure 4.19 by adding link erosion. In this case the exact same path has been run multiple times to concentrate the erosion, noticeable in the darker shade of red presented in the links under the path. At some point, the first link will break, and later all links in the path will follow. This will trigger the detachment of the cells at the left side of the model. Chapter 4. Method 49 Figure 4.24: This image builds upon the figure 4.21 by adding link erosion. In addition, here we also hid the paths blue lines and increased the amount of infiltrations simulated to a 100 random paths. The bottom left cells has transitioned to an Air state after a detachment process, which is the topic to be explained in the following section. 4.3.5 Cell detachment computation As mentioned earlier in the chapter, a cell detachment computation is invoked every time a link is broken. This process relies on the concept of connected components of a graph, specifically the graph GCdescribed in eq. 4.12 that represents the connections between cells using the link set. Fundamentally, breaking links of the model implies removing edges from this graph thus potentially splitting its initial unique connected component. For the sake of optimizing each breakage, we developed an algorithm to do fewer checks and computations when possible. We also optimize adding links back to the graph in the event of a rollback, which conceptually is pretty similar hence we chose to leave it out of this dissertation. 50 4.3. Erosion simulation process This procedure involves an initial check on the continued existence of a path between the cells that were connected by the broken link. Most of the time a single breakage will not divide the connected component of the graph, therefore a search algorithm using BFS would be fast and discard further computations. We let the user toggle this check in the input parameters to be able to compare results. Algorithm 11 CellsGraphUpdate() function, used directly in algo.1 Input: lCurrent, CELLS, LINKS, PARAMS (user) CELLS ←GraphRemoveEdge(CELLS.graphAdj, lCurrent.cells) if RequiredDirFlip(lCurrent) then lCurrent.dir ← −lCurrent.dir ▷ Always pointing outwards end if if PARAMS.graphCheckPath then if not GraphExistsPath(CELLS.graphAdj, lCurrent.cells)then CELLS, LINKS ←CellsCompsRecalc(CELLS, LINKS, PARAMS) end if else CELLS, LINKS ←CellsCompsRecalc(CELLS, LINKS, PARAMS) end if ▷Direclty, without path check return CELLS,LINKS Figure 4.25: These images continue the erosion of the same path as in figure 4.23. The left image shows the first path that triggers a link breakage, situated at its endpoint. The rest of the links are quite damaged but still considered solid. The right image shows the last path before a breakage that will lead to a component detachment. The last link can be faintly appreciated at the bottom of the path. All broken links at this point did not manage to break the path existing between any of the cell, thus not triggering further calculations. Chapter 4. Method 51 The component recalculation implies splitting the nodes of the graph into connected components, we suggest a common flood-based algorithm. When new components are detected we checked whether they are part of a detachable frontier. After all, we always have to reevaluate the current frontier in order to obtain the exact external and internal links to continue appropriately with the simulation paths. Algorithm 12 CellsCompsRecalc() function, used in algo.11 Input: CELLS, LINKS, PARAMS (user) newComps ←GraphConnectedComps(CELLS.graphAdj) if CELLS.currentComps =newComps then CELLS ←CellsDetachCheck(CELLS) CELLS.currentComps ←GraphConnectedComps(CELLS.graphAdj) end if ▷Recalculated comps after potential detachment LINKS.external, LINKS.internal ←CellsFrontierRecalc(CELLS, LINKS, PARAMS) return CELLS, LINKS The detachment check prioritizes Core cells, as briefly commented in previous sections. We define Core components, as the ones with at least a Core cell. All cells part of such components will never be detached and transitioned to Air state. If there is a single Core component, the rest of the components are removed. In the other hand, if there are no Core cells defined, the smaller component is removed. Algorithm 13 CellsDetachCheck() function, used in algo.12 Input: CELLS nonCoreComps ←NonCoreComps(CELLS.currentComps) if nonCoreComps =∅then return CELLS ▷All comps core, nothing to detach end if if nonCoreComps =CELLS.currentComps then smallComp ←SmallerComp(nonCoreComps) CELLS ←SetToAir(CELLS, smallComp) return CELLS ▷All non core, detach smaller else mergedComp ←MergeComps(nonCoreComps) CELLS ←SetToAir(CELLS, mergedComp) return CELLS ▷At least as single core, detatch the rest end if 58 5.2. Fracture structure generation Figure 5.2: Image showing our general Blender setup, in this case with a generated fracture structure along with its links visualization. We make use of the right side panels of the 3D Viewport window, where we add out custom made panels and operators to a separate section named DEV. 5.2 Fracture structure generation The generation of Voronoi cells for our fracture structure is a critical aspect of our method, for this reason we decided to use the library Voro++ [Rycroft, 2009] for carrying out three-dimensional computations of the Voronoi cells geometry. The distinguishing feature of this popular open source C++ library is that it carries out cell-based calculations, computing the Voronoi cell for each point individually as we suggested in our method. It also has the option to calculate neighboring information and other cell-based statistics (e.g. volume, centroid, number of faces) which can be used to analyze the overall system. To use the library from Python, we started using Tess [Smith, 2019] for its set of Python binding wrapping the C++ API using Cython. We found Tess quite limited tho, hence we forked its public repository and updated the API to support shaping the Voronoi container with plane walls on top of the default cubic AABB bounds. In a summary, this meant having a fast C++ process invoked from Python that computed the Voronoi cells cut by the outer walls of the model, plus the adjacency information including references to cutting planes apart from neighbouring cells. Then we used this information to preprocess our set of links and their attributes. Chapter 5. Implementation 59 Figure 5.3: Image from [Rycroft, 2009], which shows a sample Voronoi tessellation for packing a set of particles inside a cube. The right side image uses the computed neighboring information to draw a line between every pair of particles whose Voronoi cells share a face. This library has been mainly used in the field of material science to study particle packings and their properties. Figure 5.4: [Caption in the next page] 60 5.2. Fracture structure generation Figure 5.4: [Figure in the previous page] Images to showcase the GEN Fracture Operator. The user can invoke the Operator after selecting a mesh, either from a Blender command or the MW_gen panel (shown in the top-right). In this case there is no link visualization produced, only cells. The parameters used for the generation can be edited in the Blender pop-up "Edit last Operator" window, results change in real time when Auto Refresh option is toggled (may take a few seconds on heavy operations). In these images the number of input points is switched from 100 to 50. Basically all user-controlled parameters mentioned in the fracture generation section 4.2 are available. The user can reset the configuration or store interesting presets for later usage. We also added a few settings to modify the random generator to be able to work with reproducible results or the alter output cells. We proceed to illustrate the capabilities of our implementation mostly using figures with detailed descriptions. Each one of the implemented Blender Operators and custom Properties have a well defined name and concise description that appears on mouse hover. Overall the UI is complex but we tried making it as much userfriendly and intuitive as possible. Figure 5.5: The left image shows our scene hierarchy setup for the fracture structure. The middle image shows the available options that appear in the MW_gen panel when interacting with an already generated structure. These include deleting the whole set of objects (inconvenient to do manually by the user), duplicating the fracture for exploring and comparing alternative simulations, and also at the very top right the tiny squared button can be used to bake the geometry of selected cells to regular Blender objects. We will comment on the other options in subsequent figures. The rightmost image shows an inspector to consult the structure properties of the selected object after its generation, it includes filtering and editing (would affect subsequent generations). Chapter 5. Implementation 61 Figure 5.6: Image to showcase how we let the user define the input point distribution using a Blender particle system, we leverage on all its handy settings to configure the point creation. We also support other sources to retrieve input points from, for example the model vertices themselves which could be over-tessellated to increase the amount supplied. But in this case, if the mesh only contains vertices in the surface, the distribution of points inside the volume would probably not be satisfying. The user can use vertices or particles of a child object, this allows the definition of a custom sub-volume to contain the points. During generation, the available sources are detected by an extraction algorithm in order to display them in the Operator window, along with the amount of points for the selected method. Figure 5.7: The left image shows the Set cell state Operator, which lets the user manually update the cell state of selected cells. Accessible from the MW_gen panel or by user command. The right image shows our debug state inspector, that allows advanced users to delve into different status information for a specific cell and its links, for example, current cell state and ID or link state, ID, life, picked times, direction, etc. 62 5.2. Fracture structure generation Figure 5.8: Images showing a common visual property used throughout the report figures, Cell scale. This scaling produces gaps between cells that help the visualization of link characteristics. The top image also displays the object name set to each cell in the scene hierarchy. Figure 5.9: The left image displays the panel that lets the user edit the current resistance field. We provide three options, SIDE and POCKETS are the fields shown in figure 4.10 and STACK is an additional field with a pronounced horizontal layer pattern. There are parameters to edit the field return values and also to tweak its visuals. In the right image, we display the default plane generated around the fracture structure which encodes the resistance in its texture. Chapter 5. Implementation 63 Figure 5.10: Image to showcase how the user can transform the plane with common Blender widgets in order to fit any loaded model. Whenever the Update field Operator is invoked, the UV coordinates of the plane’s vertices are updated with the resistance field value at those world coordinates. The initial resolution of the plane might have to be increased to adapt to larger areas of space, as shown in the right side compared to the left side. Figure 5.11: [Caption in the next page] 64 5.2. Fracture structure generation Figure 5.11: [Figure in the previous page] The left image shows our link visualization mesh generated with the Update links Operator, which appears in many of the images in the previous chapter. For the sake of efficiency the links are represented with a unified mesh, because having an object per link like in in the case of cells, could potentially hinder the user experience by causing slows downs of the Blender 3D Viewport due to a very large amount of objects in the scene. The image at the right side contains all visual parameters that the user can tweak to suit their preferences, this include cells materials and scale, links tube resolutions and sizes, etc. The different kinds of link visualizations can be toggled on and off, plus their configuration are separated, for example in this image we hid only the inner links neighbours mesh. There are also options for single or multi water paths that are not part of this fracture structure that has yet to be eroded by the simulation. Figure 5.12: Image that shows how we represent the incoming water direction with an arrow object added to the scene hierarchy. On top of that, we let the user rotate the arrow with common Blender widgets to change the direction, this is more easy and intuitive than editing the vector in the property panel. Chapter 5. Implementation 65 5.3 Erosion simulation process The erosion simulation process can be started by the user on a object with a successfully generated fracture structure. As stated in the method chapter, this process is iterative so the user is expected to invoke the Operator multiple times until a satisfactory result is achieved. The parameters can be tweaked between infiltrations along with interleaving them with any model manipulation or the execution of other Operators. Unlike in the generation process, we do not properly support Blender undo/redo system for the simulation due to the fact that it required as considerable amount of development effort. We will comment on all simulation related features within the figures presented in this section. For the graphs structures and queries we used the open-source Python library NetworkX [Hagberg et al., 2008], which is a popular library with a intuitive easy to use API. Originally we used reused our own implementation created for a different course, but in the end we switched to this public alternative to be able to test different search algorithms without having to implement them ourselves. This module is pure Python, which means that there is no speed up in the back by leveraging execution logic to C++ using Cython or other techniques, however we did not find our usage of the library to be a bottleneck in the implementation. Figure 5.13: [Caption in the next page] 66 5.3. Erosion simulation process Figure 5.13: [Figure in the previous page] The left images image show the MW_sim panel where the user can invoke the simulation Operator for ninfiltrations and activate the stop condition for link or cell breakage. There is also Operators to reset the simulation state without rerunning the whole generation process, or just the simulation configuration. The difference with the bottom image is the text giving information about the last path run, precisely: infiltration number 4 that ended at depth 3 on a link breakage condition with leftover 0.57 volume of water. The middle image shows the "Edit last Operator" window for the SIM step Operator, which has all the simulation parameters for the user to edit interactively. The last path text is also displayed in this window. On top of that, it has the same preset and random seed utilities as the GEN Fracture Operator from figure 5.4. The rightmost image shows how the user can also see and edit the simulation parameters from the MW_sim panel before running the Operator. Figure 5.14: Images to showcase the SIM step Operator interactive usage through its "Edit last Operator" window. The user is able to edit the parameters and the simulation restores the initial state before rerunning it with the updated input, in this case the number of iterations is decreased and the resulting erosion is reduced. Chapter 5. Implementation 67 Figure 5.15: Simple image showing the same eroded model as in figure 5.14, but after a few more infiltrations. This image displays the three different cell states and their material colors, which the user can customize. Here we also add the debug toggle that would make the unreachable entry links to be added to the visualization. 5.4 Additional utilities Over the development process we created a range of utilities to aid ourselves and potentially an advanced end-user. We believe these tools could assist greatly in further development of possible future work. The rich cell and link state inspector shown in figure 5.7 would be part of this supplementary toolset. Figure 5.16: Image of the preference properties inspector accessible inside the Blender add-ons panel. This reuses the same inspector shown in figure 5.4 that provides filtering and so on. This settings are mostly not intended to be editer by the user as they refer to default values for toggles displayed in panels that modify Operators behaviors. 74 6.2. Fracture structure generation Before presenting the summary tables, here is a brief description of the columns: •Points: Number of input points randomly picked from the distribution. •Cells: Number of cells created from the points. Due to the nature of Blender particle systems, some particles might be generated outside the volume and end up completely clipped by the Boolean operation step. •Gen. Time: Time in seconds from extracting the points to the complete generation of the cells. Although is visible in the figures, generation time of the link visualization mesh is not accounted for. We instantiate the cells’ mesh to leverage on Blender API for meshes to query neighbouring faces and other geometrical queries. •Int. Links: Number of internal links generated. Generating these links does include preprocessing all attributes and adjacency information. •Ext. Links: Number of external links generated, which are the candidates for water entry. •Asym. Links: Asymmetries found between cells as depicted in figure 4.5. This non-shared faces are discarded and no link is created. As explained, they originate due to precision issues and the nature of computing each cell geometry individually. •Avg. Area: Global average surface area of the links, indicative of their size and factor that affects water propagation. The average resistance was not added to the table as it depends entirely on the field used. In all our sample fields the average value is 0.5, so the more cells given a uniform distribution, the closer the average gets to the same 0.5. •Link Vis. Mesh. Time: Time in seconds to generate the link visualization mesh. Interesting measurement to compare with the cell generation time. Points Cells Gen. Time Int. Links Ext. Links Asym. Links Avg. Area 100 96 0.312s 240 58 3 0.21 500 495 0.828s 1315 104 29 0.10 1000 990 1.375s 2229 144 76 0.07 Table 6.3: Times elapsed for generating the sample cells in figure 6.1 and properties of their internal data structures. Chapter 6. Results 75 Cells Gen. Time Total Links Link Vis. Mesh. Time 96 0.312s 298 0.578s 495 0.828s 1419 0.906s 990 1.375s 2373 1.187s Table 6.4: Times elapsed for generating the sample cells in figure 6.1 compared with the generation of their link visualization mesh. Figure 6.2: Graph of the relation between the amount of cells and produced total links. Data from table 6.4. Figure 6.3: Graph comparing the time taken to generate the whole fracture structure for the different amounts of input points, against the time to generate the link visualization mesh given the produced links. Data from table 6.4. First of all, the timings are relatively low for the 2D model. But as seen in the column containing the average area in table 6.3, the cells are already very small. So given the reduced volume of the model, further increasing the amount of points would not improve much the shape overall. Although there are only 3 samples, we can already start to infer a clear linear relationship between both, the amount of links per cells in figure 6.2, and also generation times in figure 6.3. This is consistent with findings in the next tested models which include 4 samples each. The generation time for the fracture structure starts as faster than the link visualization mesh, but its slope is steeper and catches up ending being far slower. The mesh used to visualize links is not part of the method itself, but the data offers an interesting comparison against the limitations found within Blender, which is the program employed by the user to interact with our implementation. 76 6.2. Fracture structure generation For this 2D model we also wanted to demonstrate the effect of jittering on the input points. Too regular cells look unnatural, hence we kept a default 0. 1 jittering. We commonly use a regular Blender particle system, but as explained in the implementation chapter, the user is free to distribute the points (see figure 5.6). Figure 6.4: Images showing the produced cells generated using 250 input points and increasing amounts of jittering. The specific amounts can be seen at the top-left corner of each image. The point distribution uses a Blender particle system with configured with a regular grid pattern. The last image also displays how is possible to use variable density in the point distribution. Chapter 6. Results 77 6.2.2 3D hill model The following model is the 3D version of the our 2D hill. The added volume produces interior cells, but sadly, self-occlusion makes it harder to visualize the details in a static representation. There is a setting to reduce the opacity of cells, but it does not help much in a still image. Figure 6.5: Images showing the produced cells generated using increasing amounts of randomly picked input points. Same distribution and configuration as figure 6.1, but added a fourth image with 2000 input points. The computed volume of the model is 282.05m3and its surface area 322.74m2distributed across 1894 faces. Points Cells Gen. Time Int. Links Ext. Links Asym. Links Avg. Area 100 86 0.843s 431 369 3 0.86 500 481 2.031s 2908 822 28 0.35 1000 969 4.093s 6129 1155 55 0.21 2000 1940 7.484s 12498 1643 239 0.13 Table 6.5: Times elapsed for generating the sample cells in figure 6.5 and properties of their internal data structures. As seen in this data, the overall average area does not reach as low as with the 2D model suggesting we could add even more input points, however 0.13 seems enough to produce granular erosion effects as demonstrated in section 6.3.4. 78 6.2. Fracture structure generation Cells Gen. Time Total Links Link Vis. Mesh. Time 86 0.843s 800 0.672s 481 2.031s 3730 1.443s 969 4.093s 7284 2.457s 1940 7.484s 14141 4.296s Table 6.6: Times elapsed for generating the sample cells in figure 6.5 compared with the generation of their link visualization mesh. Figure 6.6: Graph of the relation between the amount of cells and produced total links. Data from table 6.6. Figure 6.7: Graph comparing the time taken to generate the whole fracture structure for the different amounts of input points, against the time to generate the link visualization mesh given the produced links. Data from table 6.6. First of all, the timings are slower even with the same amount of cells respect to the 2D model. The reason behind this seems to the more than double amount of links generated, which is a consequence of the additional dimension that creates room for more connections between cells. Basically, cells now potentially have back and forth links on top the vertical and horizontal ones. Interestingly, regarding the total amount of links, although the volume increased proportionally more than the surface area, now there are relatively more external links than before. With these 4 samples, we can again infer a very clear linear relationship in both graphs, including the same difference in slope between generation times. In this case, the link visualization mesh already starts off taking less time than the fracture structure. Chapter 6. Results 79 6.2.3 3D terrain chunk The following model is a chunk of terrain similar to the ones used in [Ito et al., 2003], which we will compare our erosion simulation with in the section 6.3.5. This 3D model suffers the same visualization issues as the previous 3D hill, the self-occlusions do not allow a clear view of the interior cells nor links. Figure 6.8: Images showing the produced cells generated using increasing amounts of randomly picked input points. Same distribution and configuration as figure 6.5. The computed volume of the model is 249.30m3 and its surface area 249.44m2distributed across 6 faces. Points Cells Gen. Time Int. Links Ext. Links Asym. Links Avg. Area 100 100 0.328s 517 134 1 0.98 500 500 1.234s 3098 377 23 0.44 1000 1000 2.609s 6393 561 102 0.20 2000 2000 5.046s 12221 917 516 0.12 Table 6.7: Times elapsed for generating the sample cells in figure 6.8 and properties of their internal data structures. 80 6.2. Fracture structure generation Cells Gen. Time Total Links Link Vis. Mesh. Time 100 0.328s 651 0.651s 500 1.234s 3475 1.453s 1000 2.609s 6954 2.432s 2000 5.046s 13138 4.209s Table 6.8: Times elapsed for generating the sample cells in figure 6.8 compared with the generation of their link visualization mesh. Figure 6.9: Graph of the relation between the amount of cells and produced total links. Data from table 6.8. Figure 6.10: Graph comparing the time taken to generate the whole fracture structure for the different amounts of input points, against the time to generate the link visualization mesh given the produced links. Data from table 6.8. Overall, results are very similar to the previous 3D hill model. Again, the global average data is not as low as the 2D model but 0.12 is sufficient enough for granular erosion effects as demonstrated for this model in section 6.3.5. In this case, the Blender particle generator distributes the points perfectly inside the model so there are no dropped cells. The linear relationship between cells and links is almost identical to the one found in the 3D hill model, although there seems to be a bit less links. The generation time for the link visualization mesh is also almost identical, but the generation time for the structure differs substantially, being relatively faster than the mesh for the first two configurations. The cause behind this, is the vastly lower amount of external wall cuts that the Boolean operation step has to apply to the cells, basically only 6 planes. Chapter 6. Results 81 6.3 Erosion simulation process In this section, we first showcase some of the most relevant parameters of the simulation and how tweaking them affect the resulting erosion. After that, we provide two samples of exploiting the implementation of our method to achieve interesting results. 6.3.1 Erosion force control There are a series of parameters that overall let the user control the force of erosion. So to achieve similar results with more or less infiltrations one has the options to tweak different parameters. Some offer finer control and produce more gradual erosion, but in some sense there is a bit of redundancy. We believe in giving the user a free choice to use the parameters more intuitive to them rather than condensing all of them in a unique abstract one. The following parameters affect directly the force of erosion, listed in the same order they are displayed in the Operator window as seen in figure 5.13: •Number of infiltrations: Clearly the number of infiltrations is the simplest and most effective way of producing more erosion. It is also the most granular one, as one could very slowly infiltration by infiltration or by thousands at a time. •Max depth of infiltrations: Disabled by default, as it is intended more towards visualizing and studying partial paths. Nonetheless, one could use it to limit the erosion and force a more superficial effect. •Water input amount: Default volume is 1.0. More water volume per infiltration leads to longer paths so more erosion over all per infiltration. In this case the erosion leans towards being less superficial. •Water degradation: Default is 0.25. This modules how much water is absorbed due to a link opposition which depends on its resistance value and current life. Increasing this parameter would reduce erosion per infiltration as water would be absorbed faster. •Water solid and air absorption: Low values by default, 0.1 and 0.05 respectively. This coefficients model how much water is absorbed by friction over an interior or exterior surface. Commonly some small amount as what we 82 6.3. Erosion simulation process want is to get water eroding links with its energy, but some passive absorption leads to more realistic and stable simulations. •Link degradation: Default value 0.5. This modules how much a link is eroded by the absorbed water. The water is distributed over the surface area of the link though, so usually they lose life slower than the water. Increasing this parameter would increase the erosion per infiltration as the links would deteriorate faster. •Link resistance: Default value is 0.75. This parameter weights the effect of the resistance field value when combined with the life of the link to yield the opposed resistance. Increasing it would have mixed effects, on one side water would be absorbed faster, but on the other links would also get eroded more per infiltration. Overall seems to be a similar erosion but tends to concentrate in links with lower resistance values. •Link random breakage event: Composed by multiple parameters, overall its effect is to break randomly some almost broken links to speed up a bit the erosion and disconnected components. So can be used to increase erosion by potentially breaking links early or not. •Water random absorption event: Composed by multiple parameters too. Again, its overall effect is to end randomly paths with very little water and hence little erosion potential, thus optimizing a bit the simulation. So can be used to reduce erosion by potentially ending paths early or not. 6.3.2 Entry water direction The water entry direction does not affect the force of erosion itself, but drastically changes the results by targeting different areas of a model. Its control by the user is also very intuitive and totally integrated with common Blender Operators as seen in figure 5.12. On top of this direction, the user can tweak the gravity vector too, which also has a very sizeable impact in the simulation results. It is intended to let users adapt the simulation to any reference axis, however there is no restriction on it whatsoever. The following figure uses the 2D hill model from 6.1 to showcase clearly the effect of different entry water directions. We use 500 distributed points with the default 0.1 jittering and simulate 500 water infiltrations with the simulation default parameters. Chapter 6. Results 83 Figure 6.11: The top image is the base model with 495 cells computed. As seen in other figures, the rest of the images encode water entries using bars situated at each face as histograms and the fade from black to pink encode the normalized probability which depends heavily on the direction and surface area. The last water path is also visible as a blue line. The middle image with the vertical water direction spreads the water entries more over its external links, hence causing less erosion concentration and little to no cell disconnections. Overall most links close to the surface with decent entry probability are noticeably damaged. 90 6.4. Limitations 6.4 Limitations While our fracture structure and erosion simulations provides significant capabilities, it is essential to recognize its limitations and areas that require further development. We distinguish found limitations taking into consideration whether they stem from our proposed method or its implementation. 6.4.1 Method-related •Physics integration: Originally we had planned the inclusion of a system to physically model forces between cells, similar to the friction forces in [Ito et al., 2003]. We even had a model defined for it, but we did not add it to the method as it did not make it to the implementation phase on time to be able to test it. The idea was to distribute the weight of a cell between all their contact points so when a link broke the others suffered as well as now they had to cope with additional weight. This could prevent cells overhanging with very little support as a single face of contact would not be enough to hold the weight. For instance, many unstable parts of figure 6.17 would break, potentially improving the realism of the structure. Another potential limitation is the removal of all disconnected components, a more physically based approach could be to take into account the slope and underneath cells as in [Ito et al., 2003]. But to be fair, we consider that eroded components could model material which overtime eventually withers away. We tried to implement this disconnected cells falling effect using Blender rigid-body system, but it was unstable and hard to control. Basically, it is tailored for baking animations from the editor, so parameters cannot be changed from code in a simple way after the animation is started. •Recursive adaptive detail: In our method we do not provide details of how to recursively apply the fracture generation, which might not be intuitive for the user. For example, one could take a large terrain and use the generation process to divide it into big cells, then there is the possibility to apply the generation to each of the cells, etc. Right now this process has to be manually by the user, it would be great if the method itself could adapt and work in a multi-scale approach. Ideally the implementation would work directly with DEM models. •Final model baking: Similarly to the recursive detail, in our method we Chapter 6. Results 91 skip the details of how to combine the final individual cells to a unified mesh object. Could be as simple as a Boolean operator merging all their volumes, but questions arise such as how to embed the fracture structure in order to let the user continue its erosion. This could also increase in complexity when mixed with the mentioned recursive detail. We purposely left this unplanned, so it could be designed and implemented to facilitate a common final export Operator for the user. •Surface micro realistic detail: In our method we ignore completely the micro detail of the surface of cells, we leverage on the final user artistic choices of texturing and normal mapping. Even so, methods based in implicit modeling very easily add micro detail to the surfaces by displacing them by some noise as in [Paris et al., 2020]. This bumpy finish improves realism a lot, so we could actually provide at least some kind of generated normal maps for the cells to facilitate the user a more realistic result. 6.4.2 Implementation-related •Voronoi precision: Using Voro++ we found some precision problems like the ones depicted in figure 4.5. Basically Blender uses less precision to store vertex positions, this caused unexpected vertices and faces to appear which in turn produced flawed link topology. This issue was quite hard to understand, but thankfully we could detect its source with some of the utilities shown in figure 5.21. To fix the problem, we ended up reducing the precision employed by Voro++ to match Blender. However, this solution proved to be imperfect as now some input point configurations seem to potentially yield empty cells or present face asymmetries. This event is common when large amounts of points are enclosed in a tight volume. To prevent it, the user could try to increase the scale of the model, enlarging the coordinate values input to the tessellation usually fixes all problems. Overall, we had to improve the robustness of our implementation to handle the few missing cells and potential shared face asymmetries, therefore increasing its complexity a bit unnecessarily. To improve this limitation we suggest testing other Voronoi tessellation libraries, even slower ones that compute a global mesh rather than cell by cell. •Convex shapes: When we updated Tess to be able to add additional walls to perform the Boolean operator on the cells, we only added support for convex shapes. This was faster to implement and was sufficient to continue proto- 92 6.4. Limitations typing our method, we used simple sequential plane cuts. At the end, we did not spend more time on the matter and so our implementation computes the convex hull of an object before applying our method. There is an Operator included in our set of utilities that can be employed to apply a precise Boolean operator to all cells (visible in figure 5.20). But sadly, if a large difference between the original model and its convex hull exists, the simulation would work with larger cells than it should. We tried using an approximate convex decomposition (V-HACD) [Wei et al., 2022] using an existing Blender add-on [Palmer, 2018] but the results were not satisfactory. To improve this limitation, we suggest cutting the cells precisely with the whole mesh rather than individual planes, this process could be slow but has to done only once. •Blender serialization: Blender provides a great set of functionalities, but this also includes a very flexible undo/redo system. To be able to adapt to it, Operators must store all information as Blender Properties serialized inside the scene. We supported this feature in the generation process, but for the simulation state we soon realized how it would hinder the development process by taking a hefty chunk of time. Therefore, in the end we dropped its support in order to focus on other aspects of the implementation that would impact results directly. At the moment, most information can be stored in the mesh data by activating a debug flag, which later can be recovered in an undo event. But this process slows the simulation just for a possible feature that the user may not use, so we did not write the deserialization process. To improve this limitation, we could implement it to achieve a seamless integration with Blender’s undo/redo system, plus this would also support storing and loading information in .blend files as well. •Performance: Python is a high-level dynamically typed programming language, popular mainly due to its code readability and nowadays bast scientific libraries. It is interpreted rather than compiled and also has automatic garbage collection, which overall makes it potentially slow compared to compiled alternatives like C++. In our implementation, we see slow times with very large amounts of cells and internal links. Many libraries circumvent this by being interfaces that offload execution to a C++ external binary. In our case, we call a compiled version of Voro++ from python, but the library itself does not take advantage over any parallelism techniques to compute the geometry per cell. To improve this limitation we could adapt the multi-threaded version from Chapter 6. Results 93 [Lu et al., 2023], which seems to get up to 95 % improved efficiency, although the implementation is closed-source. On top of that, the library we chose for graph structures and queries, NetworkX, is pure python, hence it has no speed up of any kind. To improve the limitation we could switch it to graph-tool [Peixoto, 2014], which indeed offloads part of its computations to a compiled C++ binary. Overall we could move the entire implementation to C++ to focus on speed, but then to still provide our intuitive tools inside Blender we still would have to write Python wrapper around it. Chapter 7 Conclusion In conclusion, this project has addressed challenges found in rocky terrain generation and introduced an innovative approach to generate rocky features directly onto 3D models. The method, inspired by mechanical erosion processes like percolation and freeze-thaw weathering, provides an iterative simulation that can add increasing erosion on demand. On top of that, as demonstrated in the results chapter, a wide range of intuitive parameters can be tuned to tailor the simulation behavior. Overall, this solution could potentially improve the quality and authenticity of virtual scenes which, as mentioned, are used in diverse applications across different industries Additionally, we developed an artist-friendly tool integrated as add-on into Blender. This rich integration streamlines their workflow, eliminating the need for external applications and facilitating direct interaction with the model geometry before and after the simulated erosion. All parameters can be edited intuitively through UI panels that also provide relevant information of the simulation state. Moreover, we believe the extensive utilities created could assist greatly in further research and development. Finally, we comprehensively analyzed the limitations found in both the method and implementation. This leaves us with a clear view of the potential future work. 94 Chapter 7. Conclusion 95 7.1 Future Work Future work could address several limitations depicted in 6.4. We believe that the missing physics integration is the most damming one. It seems to produce overhanging cells with insufficient support that look unrealistic. Future work should explore the inclusion of the mentioned physics-based interactions. Additionally, we also believe artists could get a lot more value out of the tool if we could lift some of the limitations currently present on input models. For example, expanding the current implementation to support non-convex shapes would enhance a lot its versatility. We could also explore an automatic multi-scale recursive approach, which should handle appropriately large pieces of terrain without requiring intensive manual interaction from the user. Another avenue for future work would be exploring other kinds of user interactions. For example, we could add a brush tool to control better the entry zone of water and thus force erosion in specific parts of the model. On pair with this brush tool, we could have another one to help artists in the distribution of input points non-uniformly. This would allow them to increase the number of cells produced in specific parts of the model, which will produce a more granular detailed erosion there. Finally, the technical issues regarding the implementation could be taken as another direction of future work. This would include the Voronoi precision, Blender serialization and overall performance. All would help by improving the experience for the final user. Bibliography [wil, 2000] (2000). Terrain analysis: principles and applications. [Andujar, 2021] Andujar, C. (2021). Advanced 3d modeling (MIRIVRCG, UPC). https://www.fib.upc.edu/en/studies/masters/ master-innovation-and-research-informatics/curriculum/syllabus/ A3DM-MIRI. [Argudo et al., 2019] Argudo, O., Galin, E., Peytavie, A., Paris, A., Gain, J., and Guerin, E. (2019). Orometry-based terrain analysis and synthesis. 38(6):1–12. [Barnes, 2016] Barnes, R. (2016). RichDEM: Terrain Analysis Software. [Community, 2018] Community, B. O. (2018). Blender - a 3d modelling and rendering package. http://www.blender.org. [Florinsky, 2012] Florinsky, I. V. (2012). Chapter 3 - digital elevation models. In Florinsky, I. V., editor, Digital Terrain Analysis in Soil Science and Geology, pages 31–41. Academic Press, Boston. [Foley, 1996] Foley, J. D. (1996). "12.7 Constructive Solid Geometry", Computer Graphics: Principles and Practice. [Fortune, 1997] Fortune, S. (1997). Voronoi Diagrams and Delaunay Triangulations, pages 377–388. CRC Press, Inc., USA. [Galin et al., 2019] Galin, E., Guerin, E., Peytavie, A., Cordonnier, G., Cani, M.-P., Benes, B., and Gain, J. (2019). A Review of Digital Terrain Modeling. [Gousie and Lord, 2023] Gousie, M. B. and Lord, H. (2023). A modified dem for representing overhanging terrain. [Hagberg et al., 2008] Hagberg, A., Swart, P., and S Chult, D. (2008). Exploring network structure, dynamics, and function using networkx. Technical report, Los Alamos National Lab.(LANL), Los Alamos, NM (United States). 96 Bibliography 97 [Harris et al., 2020] Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M. H., Brett, M., Haldane, A., del Río, J. F., Wiebe, M., Peterson, P., Gérard-Marchant, P., Sheppard, K., Reddy, T., Weckesser, W., Abbasi, H., Gohlke, C., and Oliphant, T. E. (2020). Array programming with NumPy. Nature, 585(7825):357–362. [Hasler et al., 2012] Hasler, A., Gruber, S., and Beutel, J. (2012). Kinematics of steep bedrock permafrost: KINEMATICS OF STEEP BEDROCK PERMAFROST. 117:n/a–n/a. [Holmgren, 1994] Holmgren, P. (1994). Multiple flow direction algorithms for runoff modelling in grid based elevation models: An empirical evaluation. 8(4):327–334. [Huggett, 2011] Huggett, R. J. (2011). Fundamentals of geomorphology. Routledge fundamentals of physical geography series. Routledge, 3. ed edition. [Hunter, 2007] Hunter, J. D. (2007). Matplotlib: A 2d graphics environment. Computing in Science & Engineering, 9(3):90–95. [Ito et al., 2003] Ito, T., Fujimoto, T., Muraoka, K., and Chiba, N. (2003). Modeling rocky scenery taking into account joints. In Proceedings Computer Graphics International 2003, pages 244–247. IEEE Comput. Soc. [Jones et al., 2010] Jones, M., Farley, M., Butler, J., and Beardall, M. (2010). Directable weathering of concave rock using curvature estimation. 16(1):81–94. [Krs et al., 2020] Krs, V., Hadrich, T., Michels, D. L., Deussen, O., Pirk, S., and Benes, B. (2020). Wind erosion: Shape modifications by interactive particle-based erosion and deposition. [Lazar et al., 2022] Lazar, E., Lu, J., and Rycroft, C. (2022). Voronoi cell analysis: The shapes of particle systems. American Journal of Physics, 90:469–480. [Liu et al., 2021] Liu, G.-Y., Xu, W.-J., Govender, N., and Wilke, D. N. (2021). Simulation of rock fracture process based on GPU-accelerated discrete element method. 377:640–656. [Lu et al., 2023] Lu, J., Lazar, E. A., and Rycroft, C. H. (2023). An extension to voro++ for multithreaded computation of voronoi cells. Computer Physics Communications, 291:108832. 98 Bibliography [Matsuoka, 2008] Matsuoka, N. (2008). Frost weathering and rockwall erosion in the southeastern swiss alps: Long-term (1994-2006) observations. 99(1):353–368. [Merillou and Ghazanfarpour, 2008] Merillou, S. and Ghazanfarpour, D. (2008). A survey of aging and weathering phenomena in computer graphics. 32(2):159–174. [Microsoft, 2022] Microsoft (2022). An implementation of the debug adapter protocol for python. https://github.com/microsoft/debugpy. [Mohammadnejad et al., 2021] Mohammadnejad, M., Liu, H., Chan, A., Dehkhoda, S., and Fukuda, D. (2021). An overview on advances in computational fracture mechanics of rock. 24(4):206–229. [Muller, 2022] Muller, M. (2022). Ten minute physics, writing a tetrahedralizer for blender. https://matthias-research.github.io/pages/tenMinutePhysics/ index.html. [Palmer, 2018] Palmer, A. (2018). V-hacd for blender 2.80. https://github.com/ andyp123/blender_vhacd. [Paris et al., 2019] Paris, A., Galin, E., Peytavie, A., Guerin, E., and Gain, J. (2019). Terrain amplification with implicit 3d features. 38(5):1–15. [Paris et al., 2021] Paris, A., Guerin, E., Peytavie, A., Collon, P., and Galin, E. (2021). Synthesizing geologically coherent cave networks. 40(7):277–287. [Paris et al., 2020] Paris, A., Peytavie, A., Guerin, E., Dischler, J.-M., and Galin, E. (2020). Modeling rocky scenery using implicit blocks. 36(10):2251–2261. [Peixoto, 2014] Peixoto, T. P. (2014). The graph-tool python library. figshare. [Peytavie et al., 2009] Peytavie, A., Galin, E., Grosjean, J., and Merillou, S. (2009). Arches: a framework for modeling complex terrains. 28(2):457–467. [POV-Ray, 2021] POV-Ray (2021). Pov-ray: The persistence of vision raytracer. http://www.povray.org/. [Rycroft, 2009] Rycroft, C. H. (2009). Voro++: a three-dimensional voronoi cell library in c++. [Sellan et al., 2023] Sellan, S., Luong, J., Mattos Da Silva, L., Ramakrishnan, A., Yang, Y., and Jacobson, A. (2023). Breaking good: Fracture modes for realtime destruction. 42(1):1–12. Bibliography 99 [Smith, 2019] Smith, W. (2019). Tess: A 3d cell-based voronoi library based on voro++. https://github.com/wackywendell/tess. [Volkwein et al., 2011] Volkwein, A., Schellenberg, K., Labiouse, V., Agliardi, F., Berger, F., Bourrier, F., Dorren, L. K. A., Gerber, W., and Jaboyedoff, M. (2011). Rockfall characterisation and structural protection - a review. 11(9):2617–2651. [Walder and Hallet, 1985] Walder, J. and Hallet, B. (1985). A theoretical model of the fracture of rock during freezing. 96(3):336. [Wei et al., 2022] Wei, X., Liu, M., Ling, Z., and Su, H. (2022). Approximate convex decomposition for 3d meshes with collision-aware concavity and tree search. ACM Transactions on Graphics (TOG), 41(4):1–18. [Yan and Wu, 2023] Yan, M. and Wu, D. (2023). A new fracture simulation algorithm based on peridynamics for brittle objects. 11:88609–88617.