robust quantization for polycube maps

12
HAL Id: hal-03076711 https://hal.archives-ouvertes.fr/hal-03076711 Preprint submitted on 16 Dec 2020 HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- enti๏ฌc research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers. Lโ€™archive ouverte pluridisciplinaire HAL, est destinรฉe au dรฉpรดt et ร  la di๏ฌ€usion de documents scienti๏ฌques de niveau recherche, publiรฉs ou non, รฉmanant des รฉtablissements dโ€™enseignement et de recherche franรงais ou รฉtrangers, des laboratoires publics ou privรฉs. Robust Quantization for Polycube Maps Franรงois Protais, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, Dmitry Sokolov To cite this version: Franรงois Protais, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, et al.. Robust Quantization for Polycube Maps. 2020. hal-03076711

Upload: others

Post on 23-Feb-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Robust Quantization for Polycube Maps

HAL Id: hal-03076711https://hal.archives-ouvertes.fr/hal-03076711

Preprint submitted on 16 Dec 2020

HAL is a multi-disciplinary open accessarchive for the deposit and dissemination of sci-entific research documents, whether they are pub-lished or not. The documents may come fromteaching and research institutions in France orabroad, or from public or private research centers.

Lโ€™archive ouverte pluridisciplinaire HAL, estdestinรฉe au dรฉpรดt et ร  la diffusion de documentsscientifiques de niveau recherche, publiรฉs ou non,รฉmanant des รฉtablissements dโ€™enseignement et derecherche franรงais ou รฉtrangers, des laboratoirespublics ou privรฉs.

Robust Quantization for Polycube MapsFranรงois Protais, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck

Ledoux, Dmitry Sokolov

To cite this version:Franรงois Protais, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, et al.. RobustQuantization for Polycube Maps. 2020. ๏ฟฝhal-03076711๏ฟฝ

Page 2: Robust Quantization for Polycube Maps

Robust Quantization for Polycube Maps

FRANร‡OIS PROTAIS*, Universitรฉ de Lorraine, CNRS, Inria, LORIA, FranceMAXENCE REBEROL, Universitรฉ catholique de Louvain, BelgiumNICOLAS RAY, Universitรฉ de Lorraine, CNRS, Inria, LORIA, FranceETIENNE CORMAN, Universitรฉ de Lorraine, CNRS, Inria, LORIA, FranceFRANCK LEDOUX, CEA, DAM, DIF, FranceDMITRY SOKOLOV, Universitรฉ de Lorraine, CNRS, Inria, LORIA, France

Fig. 1. Polycube-based hexahedral meshing algorithms are able to produce very regular grids (left), but fail to capture important geometric features with acoarse grid (left โ†’ middle). Our method allows to produce a coarse mesh preserving important geometric features (right).

An important part of recent advances in hexahedral meshing focuses onthe deformation of a domain into a polycube; the polycube deformed by theinverse map fills the domain with a hexahedral mesh. These methods areappreciated because they generate highly regular meshes. In this paper weaddress a robustness issue that systematically occurs when a coarse mesh isdesired: algorithms produce deformations that are not one-to-one, leading tocollapse of large portions of the model when trying to apply the (undefined)inverse map. The origin of the problem is that the deformation requires toperform a mixed integer optimization, where the difficulty to enforce theinteger constraints is directly tied to the expected coarseness. Our solutionis to introduce sanity constraints preventing the loss of bijectivity due tothe integer constraints.

CCS Concepts: โ€ข Computing methodologies โ†’ Volumetric mod-els; Mesh models.

Additional KeyWords and Phrases: hexahedral meshing, PolyCube-Map,rounding

1 INTRODUCTIONHexahedral meshes exhibit superior performances than tetrahe-dral meshes in certain types of numerical simulations. They arecommonly used for industrial applications like geological simula-tions, large deformations and non-linear elasto-plastic structural

*Corresponding author: [email protected]

analyses [Dheeravongkit and Shimada 2006; Lessmann et al. 2018;Wheeler et al. 2012]. In practice, engineersmake use of semi-automatictools to precisely control cells orientation and quality. They oftenrely on coarse block decomposition of a domain which is then re-fined according to the simulationโ€™s need. A block decompositionallows them to generate a structured mesh, i.e. a mesh in which allinternal nodes have identical connectivity, thus allowing to storelittle data and generate sparse FEMmatrices [Armstrong et al. 2015].Overall this process is very time consuming and can take days,weeks or even months.

Automatic hexahedral meshing is an active research area butremains a challenging task especially when looking for coarse blockdecompositions. One of the most promising approach comes fromglobal parameterization. The idea is to design a 3D steering fieldprescribing the orientation of the hexahedra to produce, and thento compute a deformation of a regular grid with prescribed (local)orientation.This approach faces two main obstacles: first, existing frame

field-based methods cannot guarantee the validity of the singularitystructure, resulting in degenerated parameterizations [Li et al. 2012;Nieser et al. 2011; Ray et al. 2016]. Second, current algorithms lackrobustness when trying to produce meshes with arbitrarily largecells. In practice, mixed integer solvers often choose to allocate a

Research Report, LORIA 2020.

Page 3: Robust Quantization for Polycube Maps

2 โ€ข Franรงois Protais*, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, and Dmitry Sokolov

Fig. 2. Pipeline of hexahedral mesh generation with polycube.

negative or zero number of layers of hexahedra between two con-strained sheets (boundaries of the object, internal constraints or sin-gularities). Moreover, even having computed a parametrization, theextraction of the hexahedral mesh is a challenging problem [Lyonet al. 2016] as corrections of local non-bijectiveness of the map tendto break when generating coarse meshes.One possible way to alleviate the first issue is to generate steer-

ing fields without (inner) singularities. This limitation trades somegenericity against simpler and more robust algorithms. The idea isto deform the input shape into a polycube, i.e. a solid formed byjoining multiple cubes of same size face to face [Gregson et al. 2011;Tarini et al. 2004].

In this article we focus on robust polycube generation enablingas coarse as possible polycube hexahedral remeshing. So, startingfrom a volume ฮฉ, we want to compute a hexahedral mesh. Polycubemethods are usually split into three parts (Figure 2):

(1) Flagged deformation โ€” The boundary ๐œ•ฮฉ of the volume ฮฉis segmented into charts assigned with one of the six possi-ble flags {ยฎ๐‘ข,โˆ’ยฎ๐‘ข, ยฎ๐‘ฃ,โˆ’ยฎ๐‘ฃ, ยฎ๐‘ค,โˆ’ ยฎ๐‘ค}. A continuous, positive Jacobianmapping to the parametric space ยฎ๐‘ข, ยฎ๐‘ฃ, ยฎ๐‘ค , is then computedsuch that its distortion is minimized and the image of eachchart is planar and perpendicular to the axis of flagging. For-mal definitions of the flagging and the map (to a polycuboid)are given in ยง3.1.

(2) Quantization โ€” This second step makes sure that the facesof the polycuboid are aligned with the integer grid to obtaina Polycube. At this step, the volume can be filled by a unitgrid.

(3) Inversionโ€” The polycube deformation is inverted to extractthe final hexahedral mesh.

All three steps have robustness issues, in this paper we addressthe quantization and the inversion problem. The first step (comput-ing a flagging leading to a valid polycuboid) is very challenging[Sokolov and Ray 2015; Zhao et al. 2019], and no existing algorithmis guaranteed to produce a positive Jacobian polycuboid map. Solv-ing these issues is an active research topic, that is orthogonal to therobustness issues treated in this paper. Therefore we assume that avalid polycuboid is given as an input.

So, given a continuous, positive Jacobian mapping ๐”ค of the objectฮฉ to the parametric space, we do the following:

โ€ข We quantize the mapping, i.e. we find a valid set of integerboundary constraints.

โ€ข We compute the combinatoral structure of the hexahedralmesh induced by these integer constraints.

Fig. 3. Simply snapping variables to the nearest integer is not problematicfor producing a high resolutionmesh (Left), but becomes critical for a coarsermesh (Middle). Our constraints prevents such geometric collapses (Right).

Fig. 4. A straightforward approach to compute the mapping of the interioris to first fix the boundary (initialization in [Livesu et al. 2013]). It produceshighly distorted hexes when dealing with very coarse meshes (upper image).Moreover, hexmesh extractionmay fail in presence of inverted elements. Ourmappings have a much better geometry (bottom image) on the same mesh,and its extraction is more robust, because it does not rely on computingvalid global parameterizations.

โ€ข We recover the geometry of the hexahedral mesh.The usual approach to quantize the parameterization (step (2))

is to snap the polycubeโ€™s faces to the closest integer coordinateplane. This is very damageable as several faces can be snapped to-gether, leading to topological changes of the domain. This makesthe inversion the deformation and extraction of a valid hexahedralmesh impossible. This technique typically collapses small geometricdetails of the model, but when looking for coarse polycubes it be-comes so dramatic that the entire geometry is considered as a detailand collapsed to a point. In this article, we provide theoretical andpractical guarantees preventing collapsing (see Fig. 3). Given a validpolycuboid (step (1)), we output a valid hexahedral mesh regardlessof the level of coarseness.

To invert the polycube map (step (3)), the usual approach [Greg-son et al. 2011; Livesu et al. 2013] is to compute the mapping as apiecewise linear map on a tetrahedral mesh of ฮฉ. It was sufficient to

Research Report, LORIA 2020.

Page 4: Robust Quantization for Polycube Maps

Robust Quantization for Polycube Maps โ€ข 3

produce previous work results, but we are facing a more challengingsituation: extremely coarse meshes imply much higher distortion(see Figure 4). To robustly handle this extreme situation, we computethe inverse map i.e. a transformation of the polycube to ฮฉ. Namely,we extract the combinatorial structure of the resulting hexahedralmesh from the quantized map, and we optimize for its geometry. Itremoves the step of re-computing a global parametrization prone tohave degeneracies/inverted elements that even HexEx [Lyon et al.2016] would not be able to recover.

CONTRIBUTIONSTo sum up, we propose an approach which, given a positive Jaco-bian flagged deformation ๐”ค (step (1)), produces a valid hexahedralmesh, even for very coarse meshes. This paper contributes tothree aspects of polycube-based hexahedral meshing:

โ€ข We guarantee to quantize well the flagged deformation.Namely,we construct a positive Jacobian parameterization with inte-ger boundaries.

โ€ข We generate hexahedral meshes in a robust way: the positivityof the Jacobian for the input flagged deformation ๐”ค is notnecessary, refer to ยง6.

โ€ข We generate hexahedral meshes in a robust way: our mesh gen-eration does not rely on computing positive Jacobian globalparameterizations for the inversion step.

2 PREVIOUS WORKPolycubes were introduced in computer graphics for seamless textur-ing of triangulated surfaces [Tarini et al. 2004]. The first automaticalgorithm for polycube generation [He et al. 2009] computes a scalarfield on the object that constrains the ๐‘ง-coordinate of the deformedobject. The remaining dimensions are solved by a 2D rasterization.Recent methods [Fu et al. 2016; Gregson et al. 2011; Huang et al.2014; Zhao et al. 2018] prefer to optimize all the coordinates of thedeformation simultaneously. The idea is to progressively deform themodel in a way that each boundary triangle of the deformed objecthas one of its coordinates constant and integer. At each iteration,the triangleโ€™s normal becomes more and more aligned with one ofthe axes of the coordinate system. Each triangle would basicallyhave to be aligned with the closest axis to its normal, but moreelaborate strategies [Livesu et al. 2013] can improve the results. Thefinal hexahedral mesh is typically improved by padding, possiblywith a global optimization [Cherchi et al. 2019].

These algorithms have two major sources of failure. First of all,there may not exist a valid deformation aligning all triangles w.r.ta given flagging. Many failure cases can be fixed by heuristics [Fuet al. 2016; Gregson et al. 2011; Huang et al. 2014], but solving it inthe general case is very difficult [Sokolov and Ray 2015] and beyondthe scope of this paper. Second, respecting the flagging is only ahalf of the story: the integer coordinates of the boundary are to bechosen in a way that allows us to produce a valid hexahedral mesh.In this article we are focusing on the second issue.The finer a hexmesh is, the easier it is to produce, so a natural

way to approach the problem of coarse block decomposition is togenerate a fine hexahedral mesh, and to decimate it with a generalhexahedral mesh simplification algorithm [Gao et al. 2015, 2017]. At

each step, the algorithm applies a simplification operation (sheetsor chords collapse) to the hexahedral mesh. The geometry of thenew mesh is obtained by a reparameterization.It is also possible to obtain a coarse structure prior to the mesh

generation phase, by working directly on coordinates of chartsrepresenting the polycube. Cherchi et al. [Cherchi et al. 2016] locallyalign a pair of polycube corners along one coordinate. Zhao etal. [Zhao et al. 2019] optimize the polycube edge lengths and Chenet al. [Chen et al. 2019] optimize the position of charts, but bothconsider only the boundary of the polycube, which is insufficientto prevent loss of bijectivity (as illustrated in Figure 13). Guo etal. [Guo et al. 2020] extend [Chen et al. 2019] approach, consideringcharts that are opposite to one another, but their constraints are stillnot exhaustive. Our algorithm has lower expectations on the input,and provides an optimal solution (instead of a greedy strategy), andis guaranteed to deliver a valid output.The polycube approach can be extended by introducing cuts in

the deformation to remove some unnecessary constraints, as Fanget al. [Fang et al. 2016] and Guo et al. [Guo et al. 2020] proposeto do. Interestingly if we consider all possible cuts, we fall backto the family of hexahedral remeshing algorithms based on globalparameterizations [Nieser et al. 2011]. Global parameterizationshave robustness issues similar to those of polycube remeshing: framefields problems replace flagging problems, and the requirement onthe bijectivity of the deformation is replaced by the positivity ofthe Jacobian of the global parameterization. Frame field design iscurrently the bottleneck of the process and is an active researcharea [Li et al. 2012; Liu et al. 2018] and as in the polycube case,bijectivity becomes critical when a coarse mesh is desired.

It has to be noted that for the 2D case (i.e. quad mesh generation)[Kรคlberer et al. 2007; Ray et al. 2006], there exists robust algorithmsbased on global parameterizations [Campen et al. 2015; Myles et al.2014]. The main ingredient of these algorithms is the decompositionof the domain into quad-shaped charts by cutting the domain alonga motorcycle graph (for example, by tracing frame field streamlines).With this decomposition one can generate a quad mesh respectingthe structure of these charts.

Our work can be understood as an extension of this approach to3D. The fact that we restrict our attention to polycubes only simpli-fies the task: 3D motorcycle graphs are simply a set of axis-alignedplanes in the parametric domain, the block decomposition has thecombinatorial structure of a polycube (no T-junctions) and the edgelengths are manipulated by the coordinates of their extremities,which are directly the variables of the parameterization problem.

3 QUANTIZATION: PROBLEM STATEMENTN.B. For the sake of clarity, we present the quantization problem in2D; it is trivial to extend it to 3D (ยง6).

As mentionned earlier, parameterization methods give great re-sults for quad mesh generation. The idea is to compute a parame-terization ๐‘“ , or, in other words, two scalar fields ๐‘“1 and ๐‘“2 over thedomain ฮฉ (refer to Fig. 5). Integer iso-lines of these scalar fieldsform a structured quad mesh.

For a quad mesh to be well defined, these scalar fields must havefollowing properties (refer to Fig. 6):

Research Report, LORIA 2020.

Page 5: Robust Quantization for Polycube Maps

4 โ€ข Franรงois Protais*, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, and Dmitry Sokolov

Fig. 5. Example of a parametrization ๐‘“ = (๐‘“1, ๐‘“2) of a domain ฮฉ, displayedby its level-sets.

(1) They must be well behaved: the Jacobian of the map ๐‘“ mustbe positive.

(2) Theymust be aligned with the boundary ๐œ•ฮฉ, i.e. the boundarymust be on an iso-line of one of the scalar fields.

(3) Moreover, on each point of the boundary ๐œ•ฮฉ, at least one ofthe scalar fields must be integer.

In this work, we propose to start from a parametrization thatrespects the properties (1) and (2), but violates (3); we will computeanother parameterization that holds all three properties. In ยง3.1 weintroduce few notations necessary to formalize the problem (ยง3.2).

3.1 NotationsWe denote the domain as ฮฉ โŠ‚ R2, and its boundary as ๐œ•ฮฉ. Let ๐‘‹ =

(๐‘ฅ,๐‘ฆ) be a point of R2. The Jacobian matrix of a parameterization

๐‘“ : (๐‘ฅ,๐‘ฆ) โ†’ (๐‘“1, ๐‘“2) โˆˆ R2 is denoted as ๐ท๐‘“ =

(๐œ•๐‘“1๐œ•๐‘ฅ

๐œ•๐‘“1๐œ•๐‘ฆ

๐œ•๐‘“2๐œ•๐‘ฅ

๐œ•๐‘“2๐œ•๐‘ฆ

), and its

determinant as det(๐ท๐‘“ ) = ๐œ•๐‘“1๐œ•๐‘ฅ

๐œ•๐‘“2๐œ•๐‘ฆ โˆ’ ๐œ•๐‘“1

๐œ•๐‘ฆ๐œ•๐‘“2๐œ•๐‘ฅ .

Definition 1 (Real polycube maps ๐’ซR). We say that the map๐‘“ : ฮฉ โ†’ R2 is in ๐’ซR if:

โ€ข ๐‘“ โˆˆ ๐ถ0 (ฮฉ,R2) (continuity)

โ€ข det(๐ท๐‘“ ) > 0 (positive Jacobian)โ€ข โˆ€๐‘‹ โˆˆ ๐œ•ฮฉ, ๐‘“1 (๐‘‹ ) โˆˆ ๐ฟ๐‘Ÿ1 or (inclusive) ๐‘“2 (๐‘‹ ) โˆˆ ๐ฟ๐‘Ÿ2 (boundaryis a set of iso-lines), where ๐ฟ๐‘Ÿ =

{๐ฟ๐‘Ÿ1, ๐ฟ

๐‘Ÿ2}a finite set of real

values.

Definition 2 (Integer polycube maps ๐’ซZ). We say that ๐‘“ โˆˆ ๐’ซRis in ๐’ซZ if ๐ฟ๐‘Ÿ โŠ‚ Z (and we will denote ๐ฟ๐‘Ÿ = ๐ฟ)

Let us take ๐‘“ โˆˆ ๐’ซR. The boundary ๐œ•ฮฉ can be broken downinto a set of charts ๐‘ˆ๐‘– for the first dimension and ๐‘‰๐‘— for the seconddimension. Charts are iso-lines of ๐‘“ such as ๐‘“1 |๐‘ˆ๐‘–

โˆˆ ๐ฟ๐‘Ÿ1 and ๐‘“2 |๐‘‰๐‘—โˆˆ

๐ฟ๐‘Ÿ2 .To simplify the notations, we refer to these constant values as

๐‘“1 |๐‘ˆ๐‘–and ๐‘“2 |๐‘‰๐‘—

(refer to Fig. 7). Throughout the paper, wheneverpossible, we put the expressions for the 1st dimension only, andwe mention โ€œresp ๐‘‰๐‘— โ€ to signify that it is trivial to retrieve the 2ndexpression.

Fig. 6. Top row: a mesh extracted from a map in ๐’ซR (refer to ยง3.1) has nonboundary-aligned elements (in red). Bottom row: To obtain valid meshes,map in ๐’ซZ must be considered.

Fig. 7. Given a real polycube map ๐”ค over the domain ฮฉ, the boundary ๐œ•ฮฉis split into a set of charts๐‘ˆ๐‘– (resp.๐‘‰๐‘— ); corresponding iso-values of ๐”ค1 and๐”ค2 are denoted by ๐”ค1|๐‘ˆ๐‘–

and ๐”ค2|๐‘‰๐‘—.

3.2 Problem statementGiven an input real polycubemap ๐”ค โˆˆ ๐’ซR, the quantization problemis to find a similar (but integer!) polycube map ๐‘“ โˆˆ ๐’ซZ, solution of:

๐‘“ = arg min๐‘“ โˆˆ๐’ซZ

๐ธ (๐‘“ ) :=โˆซฮฉ

โˆฅโˆ‡๐‘“1 โˆ’ โˆ‡๐”ค1โˆฅ + โˆฅโˆ‡๐‘“2 โˆ’ โˆ‡๐”ค2โˆฅ๐‘‘๐‘‹ (1)

with โˆฅ ยท โˆฅ the Euclidean norm, and ๐ธ (๐‘“ ) is an energy measuring thedistance between ๐‘“ and ๐”ค.A common approach to solve this problem is to greedily find a

set ๐ฟ of new values for the boundary, such that ๐‘™๐‘ˆ๐‘–โ‰ˆ ๐”ค1 |๐‘ˆ๐‘–

(resp.๐‘‰๐‘— ). Then a new map constrained by these boundary values andminimizing (1) is computed. The problem, however, is that for some

sets ๐ฟ =

{{๐‘™๐‘ˆ๐‘–

} |๐ฟ๐‘Ÿ1 |๐‘–=1 ,

{๐‘™๐‘‰๐‘—

} |๐ฟ๐‘Ÿ2 |๐‘—=1

}, it is impossible to define a smooth

positive Jacobian polycube map i.e. the set ๐’ซZ is empty. Thus thequantization fails. The trivial example is to set all constraints tozero (๐‘™๐‘ˆ๐‘–

= 0,โˆ€๐‘–); a quite common non-trivial failure case is shownin Fig 8.

Research Report, LORIA 2020.

Page 6: Robust Quantization for Polycube Maps

Robust Quantization for Polycube Maps โ€ข 5

Fig. 8. Given a real polycube map (an element of ๐’ซR), a naive approach to compute an integer polycube map (an element of ๐’ซZ) is to round the boundaryvalues to the nearest integer, and then to recompute the parameterization in order to spread out the resulting distortion. In certain cases it is impossible togenerate a positive Jacobian integer polycube map, and thus the quad mesh extraction fails.

4 QUANTIZATION: OUR APPROACHIn this section we present a way to construct a map ๐น๐ฟ : ฮฉ โ†’ R2

for a given set of integer boundary constraints ๐ฟ. Then, in ยง4.1.1and ยง4.1.2, we will introduce two constraints, [C1] and [C2], suchthat โ€œ๐ฟ respects [C1] and [C2]โ€ if and only if ๐น๐ฟ โˆˆ ๐’ซZ. Armed withthis construction, we approximate the problem (1) as follows:

๐‘“ = arg min๐น๐ฟ : ๐ฟ respects [C1] and [C2]

๐ธ (๐น๐ฟ). (2)

In the rest of the section we show the construction of ๐น๐ฟ for agiven set of integer boundary constraints ๐ฟ (ยง4.1) and we describethe optimization process in ยง4.2.

4.1 Construction of ๐น๐ฟRecall that a triangulated domain ฮฉ and a positive Jacobian realpolycube map ๐”ค โˆˆ ๐’ซR are given as an input. First we show how toconstruct a function ๐น๐ฟ for a given set ๐ฟ โŠ‚ Z, and then we provethat ๐น๐ฟ is a valid integer polycube map (๐น๐ฟ โˆˆ ๐’ซZ) if and only if ๐ฟrespects [C1]and [C2].

For each chart๐‘ˆ๐‘– (resp.๐‘‰๐‘— ), we can extract the iso-lines of ๐”ค1 suchthat ๐”ค1 (๐‘‹ ) = ๐”ค1 |๐‘ˆ๐‘–

. Since det(๐ท๐”ค) > 0, these iso-lines decomposethe domain ฮฉ into quadrangular blocks (see Fig. 9). To simplify a bitthe input block decomposition, we ignore the connected componentsof the iso-lines that do not touch the corresponding chart (bottomrow of Fig. 9).Each block is mapped by ๐”ค to an axis-aligned rectangle limited

by the values of four charts ๐‘ˆ๐‘– ,๐‘ˆ๐‘–โ€ฒ,๐‘‰๐‘— ,๐‘‰๐‘— โ€ฒ that delimited it. N.B.Without loss of generality, we consider that ๐”ค1 |๐‘ˆ๐‘–

< ๐”ค1 |๐‘ˆ๐‘–โ€ฒ โ‡โ‡’๐‘– < ๐‘– โ€ฒ (resp. ๐‘‰๐‘— ).

Relying on this block decomposition, we define ๐น๐ฟ as a sum oftwo functions:

๐น๐ฟ := โ„Ž โˆ’ ๐›ฟ. (3)

The underlying idea is to define the function โ„Ž that is almost an in-teger polycube map. If ๐ฟ satisfies the constraint [C1], the function โ„Žis still a (valid) real polycube map (โ„Ž โˆˆ ๐’ซR), but it maps the bound-ary ๐œ•ฮฉ very close to the integer values given by ๐ฟ. The functionโ„Ž does most of the work: it has a positive Jacobian (det(๐ทโ„Ž) > 0),and a small correction ๐›ฟ is needed to make โ„Ž โˆ’ ๐›ฟ a valid integer

Fig. 9. The input real polycube map ๐”ค allows to decompose the domain ฮฉinto quadrangular blocks. We do not extract connected components of theisolines that do not touch โ€œcornersโ€ of the domain ฮฉ (bottom row, right).

polycube map (โ„Ž โˆ’ ๐›ฟ โˆˆ ๐’ซZ). This correction is only possible if ๐ฟalso satisfies the constraint [C2].We represent โ„Ž and ๐›ฟ by prescribing their values at the vertices

of the block decomposition. Refer to Fig. 10: given a block withfour vertices ๐‘11, ๐‘12, ๐‘21 and ๐‘22, it is mapped to an axis-alignedrectangle by ๐”ค. If we want to evaluate a function ๐‘“ represented byfour values ๐‘“ (๐‘11), ๐‘“ (๐‘12), ๐‘“ (๐‘21) and ๐‘“ (๐‘22), then for any point ๐‘of the block we can find its barycentric coordinates _1, _2, `1, `2 w.r.t.the axis-aligned rectangle, and ๐‘“ (๐‘) can be evaluated as follows:

๐‘“ (๐‘) =โˆ‘

๐‘–, ๐‘— โˆˆ{1,2}

_๐‘–` ๐‘—

(_1 + _2) (`1 + `2)๐‘“ (๐‘๐‘– ๐‘— )

So, the block decomposition allows us to represent continuousblockwise bi-linear functions; โ„Ž (ยง4.1.1) and ๐›ฟ are (ยง4.1.2) defined inthis way.

4.1.1 Construction of โ„Ž. As mentionned previously, we represent โ„Žby specifying its values at the vertices of the block decomposition.

Research Report, LORIA 2020.

Page 7: Robust Quantization for Polycube Maps

6 โ€ข Franรงois Protais*, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, and Dmitry Sokolov

Fig. 10. Each quadrangular block is mapped to an axis-aligned rectangleby ๐”ค. For every point ๐‘ in a block we can find barycentric coordinates of itsimage ๐”ค(๐‘) w.r.t. the axis-aligned rectangle; this allows us to define bi-linearfunctions over the original block by prescribing 4 values at the block vertices.

ALGORITHM 1: Computation of ๐›ฟResult: A value of ๐›ฟ (๐‘ ) for each vertex ๐‘  of the block decomposition

1 for ๐‘  โˆˆ ๐ต do2 ๐›ฟ1 (๐‘ ) = 0; visited[๐‘  ] = false;3 for ๐‘  โˆˆ ๐‘ˆ๐‘– do4 ๐›ฟ1 (๐‘ ) = ๐‘–Y; visited[๐‘  ] = true;5 while There is an edge (๐‘ , ๐‘ก ) such that โˆฅโ„Ž (๐‘ ) โˆ’ โ„Ž (๐‘ก ) โˆฅ < |๐ฟ |Y and

visited[๐‘  ] and not visited[๐‘ก ] do6 ๐›ฟ1 (๐‘ก ) = ๐›ฟ1 (๐‘ ) ;7 visited[๐‘ก ] = true;8 ๐›ฟ2 is computed the same manner;

Thus, for every vertex generated by two charts๐‘ˆ๐‘– and๐‘‰๐‘— , we defineโ„Ž to be equal to (๐‘™๐‘ˆ๐‘–

+ ๐‘–Y, ๐‘™๐‘‰๐‘—+ ๐‘—Y) with Y > 0 and the bi-linear

interpolation does the rest of the job.It is easy to verify that det(๐ทโ„Ž) > 0 (refer to Appendix A) if ๐ฟ

satisfies the constraint [C1] expressed as follows:

Definition 3. we say that ๐ฟ respects [C1]if :Given a block limited by๐‘ˆ๐‘– and๐‘ˆ๐‘–โ€ฒ (resp. ๐‘‰๐‘— ):

๐‘– < ๐‘– โ€ฒ โ‡’ ๐‘™๐‘ˆ๐‘–โ‰ค ๐‘™๐‘ˆ๐‘–โ€ฒ ([C1])

Thus, under the constraint [C1]the mapping โ„Ž โˆˆ ๐’ซR, i.e. it isa positive Jacobian real polycube map; it is easy to see that it isalmost integer: it differs only by ๐‘‚ (Y) from the target, and onlya small correction ๐›ฟ is needed so that ๐น๐ฟ := โ„Ž โˆ’ ๐›ฟ is an integerpolycube map.

4.1.2 Construction of ๐›ฟ . We need to compute a small correctionfunction ๐›ฟ such that:

(1) โ„Ž โˆ’ ๐›ฟ has desired integer values ๐ฟ on the boundary ๐œ•ฮฉ;(2) the Jacobian det(๐ท๐น๐ฟ) is positive.

Like โ„Ž, the function ๐›ฟ is represented by its values on the verticesof the block decomposition, and is interpolated elsewhere. Alg. 1shows how to compute the values by iterating over the edges of theblock decomposition.N.B. In our implementation we do not actually compute ๐›ฟ ev-

erywhere, but only for the boundary; nevertheless, we provide its

explicit construction because it allows us to state the constraint[C2], which is useful to avoid degeneracies.The construction is straightforward: first we guarantee that โ„Ž โˆ’ ๐›ฟ

has the desired values ๐ฟ on the boundary (lines 3โ€“4 of Alg. 1). Then,to ensure the positivity of the Jacobian det(๐ท (โ„Ž โˆ’ ๐›ฟ)) > 0, weperform a front propagation (lines 5โ€“7) over the edges of the blockdecomposition starting from each chart. The idea is to have allvariations of ๐›ฟ situated where the variation of โ„Ž is sufficient to keepthe positivity of the Jacobian.

More precisely, our algorithm guarantees that if an edge (๐‘ , ๐‘ก) ofthe block decomposition is โ€œshortโ€ under action of โ„Ž (i.e. โˆฅโ„Ž(๐‘ ) โˆ’โ„Ž(๐‘ก)โˆฅ < |๐ฟ |Y), then the correction ๐›ฟ keeps its length unchanged,i.e. ๐›ฟ (๐‘ ) = ๐›ฟ (๐‘ก). In Appendix B we demonstrate that this conditionimplies the positivity of the Jacobian det(๐ท (โ„Ž โˆ’ ๐›ฟ)) > 0.

There is one caveat though. The algorithm propagates fronts start-ing from the charts, the propagation is made along โ€œshortโ€ edgesof the block decomposition. What happens if two different fronts,say, from charts ๐‘ˆ๐‘– and ๐‘ˆ ๐‘— meet across an edge? By construction,that would imply that there is a path made entirely of โ€œshortโ€ edgesthat links a vertex of๐‘ˆ๐‘– with a vertex of๐‘ˆ ๐‘— . It implies the equalityof integer boundary constraints ๐‘™๐‘ˆ๐‘–

= ๐‘™๐‘ˆ ๐‘—and ๐‘™๐‘‰๐‘–โ€ฒ = ๐‘™๐‘‰๐‘—โ€ฒ ; in turn, it

implies that it is impossible to build a valid integer polycube maprepresented as a bi-linear interpolation over the block decomposi-tion.Fig. 8 provides a typical example of the violated constraint: two

different points of ฮฉ are placed in the same place in the paramet-ric space, leading to a degenerate Jacobian. To avoid this, we putconstraints on the set ๐ฟ: we force certain paths over the edges ofthe block decomposition to contain โ€œlongโ€ edges. It is sufficient toconsider only monotonic paths, i.e., paths that do not go back andforth in each of the dimensions.

Definition 4. We say that a path ๐‘ƒ over the edges of the blockdecomposition is monotonic if its coordinate functions โ„Ž1 (๐‘ƒ) andโ„Ž2 (๐‘ƒ) are (non-strictly) monotonic.

Thus, we put a constraint that every monotonic path between anytwo points of different charts in the same dimension, must containa โ€œlongโ€ edge. We call this constraint [C2] and it is formulated asfollows:

Definition 5. We say that ๐ฟ respects [C2] if:Given two vertices issued from charts ๐‘ˆ๐‘– ,๐‘‰๐‘— and๐‘ˆ๐‘–โ€ฒ,๐‘‰๐‘— โ€ฒ . If the ver-tices are both situated on same dimension charts and if there existsmonotone path between them, then:

sign(๐‘– โ€ฒ โˆ’ ๐‘–) (๐‘™๐‘ˆ๐‘–โ€ฒ โˆ’ ๐‘™๐‘ˆ๐‘–) + sign( ๐‘— โ€ฒ โˆ’ ๐‘—) (๐‘™๐‘‰๐‘—โ€ฒ โˆ’ ๐‘™๐‘‰๐‘—

) > 0 ([C2])

Let us sum up: given a positive Jacobian real polycube map๐”ค โˆˆ ๐’ซR and a set of integer constraints ๐ฟ; if ๐ฟ respects[C1] and [C2], then ๐น๐ฟ , whose construction we give explicitly,is a valid positive Jacobian integer polycube map (๐น๐ฟ โˆˆ ๐’ซZ).

4.2 Estimating ๐ธ (๐น๐ฟ) and optimizationHaving defined a construction of a function ๐‘ƒ๐ฟ for a given set ofinteger constraints ๐ฟ, we need to evaluate the energy ๐ธ (๐น๐ฟ) to beable to solve our optimization problem (2).

Research Report, LORIA 2020.

Page 8: Robust Quantization for Polycube Maps

Robust Quantization for Polycube Maps โ€ข 7

For a given value of Y, evaluation of ๐ธ (๐น๐ฟ) is quite cumbersome.Fortunately, we can notice the following fact:

limYโ†’0

๐ธ (๐น๐ฟ) = limYโ†’0

๐ธ (โ„Ž)

The behavior of ๐ธ (โ„Ž) at the limit with Y โ†’ 0 is easy to study,some straightforward calculations (see Appendix C) give followingexpression:

limYโ†’0

๐ธ (๐น๐ฟ) =โˆ‘

๐‘ block of ฮฉ

๐›ผ1

๏ฟฝ๏ฟฝ๏ฟฝ๐‘™๐‘ˆ๐‘–โ€ฒ โˆ’ ๐‘™๐‘ˆ๐‘–โˆ’ (๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–

)๏ฟฝ๏ฟฝ๏ฟฝ

+๐›ผ2๏ฟฝ๏ฟฝ๏ฟฝ๐‘™๐‘‰๐‘—โ€ฒ โˆ’ ๐‘™๐‘‰๐‘—

โˆ’ (๐”ค2 |๐‘‰๐‘—โ€ฒ โˆ’ ๐”ค2 |๐‘‰๐‘—)๏ฟฝ๏ฟฝ๏ฟฝ , (4)

where ๐›ผ1 and ๐›ผ2 are constant per block:

๐›ผ1 =

โˆซ๐‘โˆฅโˆ‡๐”ค1 (๐‘‹ )โˆฅ ๐‘‘๐‘‹

|๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–| ๐›ผ2 =

โˆซ๐‘โˆฅโˆ‡๐”ค2 (๐‘‹ )โˆฅ ๐‘‘๐‘‹

|๐”ค2 |๐‘‰๐‘—โ€ฒ โˆ’ ๐”ค2 |๐‘‰๐‘—| .

It allows us to reformulate the problem (2) as follows:

๐‘“ = arg min๐น๐ฟ : ๐ฟ respects [C1] and [C2]

limYโ†’0

๐ธ (๐น๐ฟ) . (5)

Under a proper change of variables, this optimization problemboils down to a mixed-integer linear program, i.e. a minimizationof a linear energy under linear and integer constraints.N.B. This problem always has a solution; as a matter of fact, the

choice ๐‘™๐‘ˆ๐‘–= ๐‘– (resp. ๐‘™๐‘‰๐‘—

= ๐‘— ) is a feasible set of constraints.

5 IMPLEMENTATIONFor the sake of clarity, so far our method was presented in 2 dimen-sions, but it is straightforward to extend it to 3D. We discuss ourimplementation and results in 3 dimensions.It is important to notice that the construction we proposed in

Section 4 relies on a (local) bijectivity of ๐”ค everywhere over thedomain. In practice, it is a lot to ask: usually real polycube mapshave small defects that undermine our construction, particularlyif we actually wanted to cut the input mesh along the iso-surfacesgenerated by the charts in order to extract the block decomposition.To circumvent this issue, we do not compute the iso-surfaces,

but rather we:โ€ข ยง 5.1: extract the combinatorial structure of the blockdecomposition by rasterizing the image of ฮฉ by ๐”ค;

โ€ข ยง 5.2: this information suffices to deduce the combinatorialstructure of the resulting hexmesh by solving the mixed-integer linear program given by Eq. (5);

โ€ข ยง 5.3: finally, we use ๐น๐ฟ to recover the geometry of the hexmesh. Note that with the information in our hands, ๐นโˆ’1

๐ฟis

not defined everywhere in the domain, however it is possibleto evaluate it at the vertices of the hex mesh.

5.1 Extracting the block decompositionAs pointed out earlier, ๐”ค often presents small defects like invertedor degenerated tetrahedra. It is not an issue as long as at least allthe charts are well defined and the image ๐”ค

({๐‘ˆ๐‘– }

โ‹ƒ{๐‘‰๐‘— }โ‹ƒ{๐‘Š๐‘˜ }

)forms a valid boundary of a volume. In this case, we can cut R3 withaxis-aligned planes placed at the values ๐”ค1 |๐‘ˆ๐‘–

) (resp. ๐‘‰๐‘— ,๐‘Š๐‘˜ ). Thisdefines an axis-aligned grid in the parametric space, and by a simplerasterization we can find whether a current grid cell is in the image

of ฮฉ by ๐”ค, or out. Having extracted all inner blocks, we obtain thecombinatory structure of the block decomposition.

5.2 Computing hexahedral combinatoryThe combinatorial structure of the resulting hexahedral mesh iscompletely defined by the quantization ๐ฟ, and it can be found bysolving Eq. (5). We solve the mixed-integer linear program by us-ing [CPLEX 2019], and the implementation is rather straightforward,but we must pay attention to two details:

โ€ข the proposed energy (Eq. (5)) relies on the computation ofweights ๐›ผ๐‘– , which requires to integrate โˆ‡๐”ค๐‘– over each blockof ฮฉ. Note that for robustness reasons we have chosen not tocompute the block decomposition of ฮฉ explicitly, thereforewe approximate ๐›ผ๐‘– in each block ๐‘ โˆˆ ฮฉ by the volume of theblock under action of ๐”ค, which is readily available.

โ€ข the constraint [C2] represents a lot of inequalities (๐‘‚ (๐‘ 2),where ๐‘ the number of vertices of the block decomposition).In our implementation, we treat them as โ€œlazyโ€ constraints.More precisely, we solve the problem without enforcing en-tirely [C2], i.e. we start by only constraining charts that areopposite to one another, similarly to [Guo et al. 2020]. Then,if the solution violates [C2], we add the โ€œleast respectedโ€ in-equality to the problem, and restart until we find a solutionthat respects [C2]. In practice we never encountered a casewhere more than few iterations were necessary, refer to theright column of Table 1.

To compute the final combinatorial structure of the resulting hexa-hedral mesh, first we create the hexahedral mesh (still not endowedwith geometry) inherited from the block decomposition. Then weremove or split hexahedra based on the quantization ๐ฟ.

So far we have computed the connectivity of the output hexahe-dral mesh but we are still missing the vertex positions. In ยง5.3 wewill apply ๐นโˆ’1

๐ฟto find the final mesh.

5.3 Computing hexahedral geometryThe last step of the process is to compute the geometry of the finalhexahedral mesh. We have already computed its image under ๐น๐ฟ ,and therefore we need to apply ๐นโˆ’1

๐ฟto the previous result.

The problem, however, is that we have chosen to compute onlythe combinatorial structure of the block decomposition and not itsgeometry inฮฉ; therefore ๐น๐ฟ is not defined everywhere in the domainwith the information we have in our hands. Fortunately, it is well-defined for the vertices of our hexahedral mesh. Applying ๐นโˆ’1

๐ฟto the

vertices of the hexahedral mesh boils down to mapping the meshonto ๐”ค(ฮฉ) and then to applying ๐”คโˆ’1 to the vertices. Since in practice๐”ค may present local imperfections (e.g. foldovers), the resultingmesh might not be perfectly conforming with the boundary, orpossess poor quality elements. In this case, we can apply a meshoptimisation algorithm such as [Livesu et al. 2015] to improve theboundary compliance and get rid of poor quality elements.

6 RESULTSWe tested our algorithm on a i7 4.3GHz CPUwith 64GB of RAM on asingle thread implementation. We compute the initial real polycubemap ๐”ค with the algorithm [Gregson et al. 2011].

Research Report, LORIA 2020.

Page 9: Robust Quantization for Polycube Maps

8 โ€ข Franรงois Protais*, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, and Dmitry Sokolov

Fig. 11. Our robust quantization process allows for multi resolution meshes,without risk of collapses of the geometry.

Id Model name size (tets) # blocks # hexahedra total time (sec) CPLEX calls1 kiss 302292 2558 410 150 22 Bunny 731085 426 58 130 23 grid 6718 285 56 2.1 14 street 2327 483 55 3.0 35 connecting rod 14380 203 54 2.6 16 engine1 18864 6151 219 4.6 17 engine2 56789 9415 404 9.2 1

Table 1. Statistics for the models shown in Fig 12.

6.1 Hexahedral meshingWe use our algorithm to generate hexahedral meshes minimizingthe distortion with respect to the initial real polycube map ๐”ค. Theresolution of the meshes is determined by the scale of the inputreal polycube map ๐”ค. Fig. 11 shows the results for two differentresolutions. Unlike the naive snapping technique sometimes usedfor quantization (Fig. 3), our quantization produces valid hexahedralmeshes (no missing hexes) without loss of geometric features. Weran our code on 1000+ models from the dataset [Hu et al. 2018].Results are provided in the supplementary material1. Concerningour claims on robustness to local non-bijectivity, it should be notedthat from the 1391 model tested, 815 (59%) had at least oneflipped tetrahedron through ๐”ค.

6.2 As coarse as possible block decomposition.To challenge the robustness of our algorithm, we generate as coarseas possible hexahedral meshes by using a down-scaled ๐”ค, i.e. , replacethe input ๐”ค by [๐”ค with [ โ‰ˆ 0. The result can be interpreted as ablock decomposition that minimizes the distance between pairs ofcharts. Table 1 provides statistics on 7 models, the decompositionsare shown in Fig. 12. Note that ๐”ค was computed with [Gregson et al.1Contact: [email protected]

Fig. 12. For each model, we optimize the block decomposition to get anas coarse as possible polycube. The associated mesh will give a very coarsedecomposition of the original domain ฮฉ.

2011] for all models except the two first models from Table 1 thatcome from the supplemental material of [Livesu et al. 2013].We reported the number of blocks in the input polycuboid, the

number of blocks in the output generated with global overlapsas well as the timings and the number of times we had to callCPLEX. It can be seen that we achieve a significant simplificationof the mesh structure, and that our algorithm is robust to extremesimplifications, being able to recover valid meshes even for highlydistorted polycube maps.

Comparison with polycube simplification methods. [Zhao et al.2019], [Chen et al. 2019] and [Guo et al. 2020] propose a set ofconstraints to guarantee the validity of the polycube. The problem,however is that their constraints are not sufficient and can poten-tially lead to degenerate polycube during simplification. They onlyguarantee the integrity of the boundary of the polycube, missingthe deformation inside the domain. Fig 13 shows a failure example:the bottom of the cup collapses into a plane without violating theirconstraints, whereas our set of constraints guarantees the validityof the polycube map. Cherchi et al. [Cherchi et al. 2016] attempt tolocally align corners of the polycube. As a consequence they failto align vertices that are far away from each other. In contrast, ourmethod considers all possible chart alignments. For example, the

Research Report, LORIA 2020.

Page 10: Robust Quantization for Polycube Maps

Robust Quantization for Polycube Maps โ€ข 9

Fig. 13. Quantization without volumic constraints [Chen et al. 2019; Zhaoet al. 2019] can not detect the collapse of the bottom of the cup (middle).We take them into account (right). [Guo et al. 2020] would succeed on thismodel, but would fail on more tricky set-up (such as Fig 8).

# of blocks Time (min)Original GAO et al. 2017 Us GAO et al. 2017 Us

Top 33 23 28 27 <1Middle 347 80 80 >200 <1Bottom 70 24 16 24 <1

Table 2. Comparison with mesh simplification method [Gao et al. 2017]:number of blocks before and after simplification and timing. Models arerendered in Fig 14. Our method leads to similar number of blocks with aconsiderable speed-up (โˆผ 20ร—). For the top model Gao et al. has fewer blocksonly because they allow non-polycube deformation (close-up).

model 4 in Fig. 12 we are able to align the hole with one of the topdents, and this cannot be done by [Cherchi et al. 2016].

Comparison with [Gao et al. 2017]. Another way of computing aminimal block decomposition is to compute a fine hexahedral meshand to decimate it using a genericmesh simplification algorithm. Thestate-of-the-art method [Gao et al. 2017] recursively collapses sheetsand chords of the mesh until no further simplification is possible. Intheir algorithm each operation is given a score and the operationsare done in a greedy manner. This approach is strictly local andthis sequence of simplification does not always yield the coarsestmesh, as illustrated in Fig. 14. It is to be noted that in [Gao et al.2017] the mesh geometry is recomputed at each step to take intoaccount the simplification operation. In our method the constraintsensure the validity of the polycube map at all time so the meshgeometry can be computed once at the very end of the process.This leads to the considerable speed up reported in Table 2. Finally,the chord simplification introduces new singularities that are notalways desirable. For instance in Fig. 14 middle, Gao et al. create atthe boundary of the mesh valency 4 near valency 2 vertices leadingto highly distorted cells.

CONCLUSIONThis work provides an important robustness guarantee, but it as-sumes that a one-to-one ๐”ค is given as input. To achieve a fullyrobust hexahedral remeshing method based on polycubes, the mainremaining difficulty is to solve the flagging problem.It also opens interesting research opportunities for the general

case of hexahedral remeshing based on global parameterizations.Basically, we need to introduce new integer variables correspondingto the (grid preserving) discontinuities in the mapping. The mainproblem is that the block decomposition is less straightforward

Fig. 14. Visual comparison between ourmethod and themesh simplificationmethod [Gao et al. 2017]. Quantitative data are reported in Table 2. Ourblock decomposition creates nicer cells when Gao et al. create valency 4vertices at the boundary of the mesh (middle close-up).

to obtain: the parameteric domain becomes an universal coveringwhere the intersection of a plane with the model can be infinite, andtracing it in the geometric domain is an ill-posed problem [Kowalskiet al. 2014, 2016].We have also seen that the combinatorial structure of the hexa-

hedral mesh can be derived from our integer variables. Is it possibleto extend this to the general global parameterization case?

REFERENCESCecil G. Armstrong, Harold J. Fogg, Christopher M. Tierney, and Trevor T. Robinson.

2015. Common Themes in Multi-block Structured Quad/Hex Mesh Generation.Procedia Engineering 124 (Jan. 2015), 70โ€“82. https://doi.org/10.1016/j.proeng.2015.10.123

Marcel Campen, David Bommes, and Leif Kobbelt. 2015. Quantized global parametriza-tion. ACM Transactions on Graphics 34, 6 (Oct. 2015), 1โ€“12. https://doi.org/10.1145/2816795.2818140

Long Chen, Gang Xu, Shiyi Wang, Zeyun Shi, and Jin Huang. 2019. Constructingvolumetric parameterization based on directed graph simplification of l1 polycubestructure from complex shapes. Computer Methods in Applied Mechanics and Engi-neering 351 (July 2019), 422โ€“440. https://doi.org/10.1016/j.cma.2019.01.036

G. Cherchi, P. Alliez, R. Scateni, M. Lyon, and D. Bommes. 2019. Selective Paddingfor Polycube-Based Hexahedral Meshing. Computer Graphics Forum 38, 1 (2019),580โ€“591. https://doi.org/10.1111/cgf.13593

Gianmarco Cherchi, Marco Livesu, and Riccardo Scateni. 2016. Polycube Simplificationfor Coarse Layouts of Surfaces and Volumes. Computer Graphics Forum 35, 5 (Aug.2016), 11โ€“20. https://doi.org/10.1111/cgf.12959

CPLEX 2019. IBM ILOG CPLEX Optimization Studio 12.9.0.0. https://www.ibm.com/products/ilog-cplex-optimization-studio

Arbtip Dheeravongkit and Kenji Shimada. 2006. Inverse Adaptation of Hex-dominantMesh for Large Deformation Finite Element Analysis. In Geometric Modeling andProcessing - GMP 2006, Myung-Soo Kim and Kenji Shimada (Eds.). Springer BerlinHeidelberg, Berlin, Heidelberg, 189โ€“206.

Xianzhong Fang, Weiwei Xu, Hujun Bao, and Jin Huang. 2016. All-hex meshing usingclosed-form induced polycube. ACM Transactions on Graphics 35, 4 (July 2016), 1โ€“9.https://doi.org/10.1145/2897824.2925957

Research Report, LORIA 2020.

Page 11: Robust Quantization for Polycube Maps

10 โ€ข Franรงois Protais*, Maxence Reberol, Nicolas Ray, Etienne Corman, Franck Ledoux, and Dmitry Sokolov

Xiao-Ming Fu, Chong-Yang Bai, and Yang Liu. 2016. Efficient Volumetric PolyCube-MapConstruction. Computer Graphics Forum 35, 7 (2016), 97โ€“106. https://doi.org/10.1111/cgf.13007

Xifeng Gao, Zhigang Deng, and Guoning Chen. 2015. Hexahedral mesh re-parameterization from aligned base-complex. ACM Transactions on Graphics 34, 4(July 2015), 142:1โ€“142:10. https://doi.org/10.1145/2766941

Xifeng Gao, Daniele Panozzo, Wenping Wang, Zhigang Deng, and Guoning Chen. 2017.Robust structure simplification for hex re-meshing. ACM Transactions on Graphics36, 6 (Nov. 2017), 1โ€“13. https://doi.org/10.1145/3130800.3130848

James Gregson, Alla Sheffer, and Eugene Zhang. 2011. All-Hex Mesh Generation viaVolumetric PolyCube Deformation. Computer Graphics Forum 30, 5 (Aug. 2011),1407โ€“1416. https://doi.org/10.1111/j.1467-8659.2011.02015.x

Hao-Xiang Guo, Xiaohan Liu, Dong-Ming Yan, and Yang Liu. 2020. Cut-enhancedPolyCube-maps for feature-aware all-hex meshing. ACM Transactions on Graphics39, 4 (July 2020). https://doi.org/10.1145/3386569.3392378

Ying He, Hongyu Wang, Chi-Wing Fu, and Hong Qin. 2009. A divide-and-conquerapproach for automatic polycube map construction. Computers & Graphics 33, 3(June 2009), 369โ€“380. https://doi.org/10.1016/j.cag.2009.03.024

Yixin Hu, Qingnan Zhou, Xifeng Gao, Alec Jacobson, Denis Zorin, and Daniele Panozzo.2018. Tetrahedral Meshing in the Wild. ACM Trans. Graph. 37, 4 (July 2018),60:1โ€“60:14. https://doi.org/10.1145/3197517.3201353

Jin Huang, Tengfei Jiang, Zeyun Shi, Yiying Tong, Hujun Bao, and Mathieu Desbrun.2014. l1Basedd Construction of Polycube Maps from Complex Shapes. ACM Trans.Graph. 33, 3 (June 2014), 25:1โ€“25:11. https://doi.org/10.1145/2602141

Felix Kรคlberer, Matthias Nieser, and Konrad Polthier. 2007. QuadCover - SurfaceParameterization using Branched Coverings. Computer Graphics Forum 26, 3 (2007),375โ€“384. https://doi.org/10.1111/j.1467-8659.2007.01060.x

N. Kowalski, F. Ledoux, and P. Frey. 2014. Block-structured Hexahedral Meshes forCAD Models Using 3D Frame Fields. Procedia Engineering 82 (Jan. 2014), 59โ€“71.https://doi.org/10.1016/j.proeng.2014.10.373

N. Kowalski, F. Ledoux, and P. Frey. 2016. Smoothness driven frame field generationfor hexahedral meshing. Computer-Aided Design 72 (March 2016), 65โ€“77. https://doi.org/10.1016/j.cad.2015.06.009

Moritz Lessmann, John Sawyer, and David Knowles. 2018. Methods for ComplexCracked Body Finite Element Assessments. Procedia Structural Integrity 13 (2018),1232 โ€“ 1237. https://doi.org/10.1016/j.prostr.2018.12.253 ECF22 - Loading andEnvironmental effects on Structural Integrity.

Yufei Li, Yang Liu, Weiwei Xu,WenpingWang, and Baining Guo. 2012. All-HexMeshingUsing Singularity-Restricted Field. ACM Trans. Graph. 31, 6, Article Article 177 (Nov.2012), 11 pages. https://doi.org/10.1145/2366145.2366196

Heng Liu, Paul Zhang, Edward Chien, Justin Solomon, and David Bommes. 2018.Singularity-Constrained Octahedral Fields for Hexahedral Meshing. ACM Trans.Graph. 37, 4, Article Article 93 (July 2018), 17 pages. https://doi.org/10.1145/3197517.3201344

Marco Livesu, Alla Sheffer, Nicholas Vining, and Marco Tarini. 2015. Practical Hex-Mesh Optimization via Edge-Cone Rectification. Transactions on Graphics (Proc.SIGGRAPH 2015) 34, 4 (2015). https://doi.org/10.1145/2766905

Marco Livesu, Nicholas Vining, Alla Sheffer, James Gregson, and Riccardo Scateni. 2013.PolyCut: monotone graph-cuts for PolyCube base-complex construction. ACMTransactions on Graphics 32, 6 (Nov. 2013), 1โ€“12. https://doi.org/10.1145/2508363.2508388

Max Lyon, David Bommes, and Leif Kobbelt. 2016. HexEx: robust hexahedral meshextraction. ACM Transactions on Graphics 35, 4 (July 2016), 1โ€“11. https://doi.org/10.1145/2897824.2925976

Ashish Myles, Nico Pietroni, and Denis Zorin. 2014. Robust Field-aligned GlobalParametrization. ACM Trans. Graph. 33, 4 (July 2014), 135:1โ€“135:14. https://doi.org/10.1145/2601097.2601154

M. Nieser, U. Reitebuch, and K. Polthier. 2011. CubeCover- Parameterization of 3DVolumes. Computer Graphics Forum 30, 5 (Aug. 2011), 1397โ€“1406. https://doi.org/10.1111/j.1467-8659.2011.02014.x

Nicolas Ray, Wan Chiu Li, Bruno Lรฉvy, Alla Sheffer, and Pierre Alliez. 2006. PeriodicGlobal Parameterization. ACM Trans. Graph. 25, 4 (Oct. 2006), 1460โ€“1485. https://doi.org/10.1145/1183287.1183297

Nicolas Ray, Dmitry Sokolov, and Bruno Levy. 2016. Practical 3D Frame Field Generation.ACM Trans. Graph. 35, 6, Article Article 233 (Nov. 2016), 9 pages. https://doi.org/10.1145/2980179.2982408

Dmitry Sokolov and Nicolas Ray. 2015. Fixing normal constraints for generation ofpolycubes. Research Report. LORIA. https://hal.inria.fr/hal-01211408

Marco Tarini, Kai Hormann, Paolo Cignoni, and ClaudioMontani. 2004. PolyCube-Maps.In ACM SIGGRAPH 2004 Papers (SIGGRAPH โ€™04). ACM, New York, NY, USA, 853โ€“860.https://doi.org/10.1145/1186562.1015810 event-place: Los Angeles, California.

Mary Wheeler, Guangri Xue, and Ivan Yotov. 2012. A multipoint flux mixed finiteelement method on distorted quadrilaterals and hexahedra. Numer. Math. 121 (052012). https://doi.org/10.1007/s00211-011-0427-7

Hui Zhao, Na Lei, Xuan Li, Peng Zeng, Ke Xu, and Xianfeng Gu. 2018. Robust edge-preserving surface mesh polycube deformation. Computational Visual Media 4, 1

(March 2018), 33โ€“42. https://doi.org/10.1007/s41095-017-0100-xHui Zhao, Xuan Li, Wencheng Wang, Xiaoling Wang, Shaodong Wang, Na Lei, and

Xiangfeng Gu. 2019. Polycube Shape Space. Computer Graphics Forum 38, 7 (Oct.2019), 311โ€“322. https://doi.org/10.1111/cgf.13839

A POSITIVITY OF det(๐ทโ„Ž)In this section gives a proof that [C1] assures the positivity ofdet(๐ทโ„Ž). We will proceed in two steps, first we will give an mathe-matical definition for โ„Ž and then, from it, deduce the necessity ofconstraint [C1].

A.1 definition of โ„ŽIn this section, we give a definition of โ„Ž that is equivalent to the onegiven in Sec. 4.1.1, but brings another intuition.We know that each block created by four charts ๐‘ˆ๐‘– ,๐‘ˆ๐‘–โ€ฒ,๐‘‰๐‘— ,๐‘‰๐‘— โ€ฒ

is mapped by ๐”ค to an axis-aligned rectangle (Fig. 15) delimited by๐”ค1|๐‘ˆ๐‘–

, ๐”ค1|๐‘ˆ๐‘–โ€ฒ, ๐”ค2|๐‘‰๐‘—

and ๐”ค2|๐‘‰๐‘—โ€ฒ. It is easy to stretch this rectangle to any

other axis-aligned rectangle by modifying each axis independently.We can therefore define โ„Ž as โ„Ž(๐‘‹ ) := (๐ด1 (๐”ค1 (๐‘‹ )), ๐ด2 (๐”ค2 (๐‘‹ ))) with๐ด1, ๐ด2 : Rโ†’ R being two continuous block-wise affine functions.

By definition,โ„Žmaps each block defined by four charts๐‘ˆ๐‘– ,๐‘ˆ๐‘–โ€ฒ,๐‘‰๐‘— ,๐‘‰๐‘— โ€ฒ

to the axis-aligned rectangle delimited by ๐‘™๐‘ˆ๐‘–+ ๐‘–Y, ๐‘™๐‘ˆ๐‘–โ€ฒ + ๐‘– โ€ฒY, ๐‘™๐‘‰๐‘—

+๐‘—Y, ๐‘™๐‘‰๐‘—โ€ฒ + ๐‘— โ€ฒY for some small Y > 0.On a block defined by๐‘ˆ๐‘– ,๐‘ˆ๐‘–โ€ฒ,๐‘‰๐‘— ,๐‘‰๐‘— โ€ฒ , the function ๐”ค1 is bounded

by ๐”ค1 |๐‘ˆ๐‘–and ๐”ค1 |๐‘ˆ๐‘–โ€ฒ in the first dimension. The affine transformation

๐ด1 is defined as follows :

๐ด1 (๐’™) : =๐‘™๐‘ˆ๐‘–โ€ฒ + ๐‘–

โ€ฒY โˆ’ (๐‘™๐‘ˆ๐‘–+ ๐‘–Y)

๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–

๐’™ + ๐‘1

= ๐‘Ž1๐”ค1 (๐‘ฅ) + ๐‘1

with๐‘1 constant chosen such that๐ด1 maps[๐”ค1 |๐‘ˆ๐‘–

, ๐”ค1 |๐‘ˆ๐‘–โ€ฒ]on

[๐‘™๐‘ˆ๐‘–

+ ๐‘–Y, ๐‘™๐‘ˆ๐‘–โ€ฒ + ๐‘–โ€ฒY].

The values of ๐”ค1 |๐‘ˆ๐‘–and ๐‘™๐‘ˆ๐‘–

being defined along the iso-lines, โ„Ž iscontinuous at the interface between blocks (but not differentiable).The affine transformation in the second dimension, ๐ด2, is given

by the same construction.

A.2 Computation of det(๐ทโ„Ž)The variation of โ„Ž are strictly linked to ๐ด1, ๐ด2 and ๐”ค, i.e. ๐ทโ„Ž can beexpressed as follow :

๐ทโ„Ž = ๐ท

(๐ด1 (๐”ค1 (๐‘‹ ))๐ด2 (๐”ค2 (๐‘‹ ))

)=

(๐œ•โ„Ž1๐œ•๐”ค1

๐œ•โ„Ž1๐œ•๐”ค2

๐œ•โ„Ž2๐œ•๐”ค1

๐œ•โ„Ž2๐œ•๐”ค2

)๐ท๐”ค =

(๐‘Ž1 00 ๐‘Ž2

)๐ท๐”ค

meaning that

det(๐ทโ„Ž) = ๐‘Ž1๐‘Ž2 det(๐ท๐”ค) .

Remembering that ๐‘Ž1 =๐‘™๐‘ˆ๐‘–โ€ฒ +๐‘–

โ€ฒYโˆ’(๐‘™๐‘ˆ๐‘–+๐‘–Y)

๐”ค1 |๐‘ˆ๐‘–โ€ฒโˆ’๐”ค1 |๐‘ˆ๐‘–

, since ๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’๐”ค1 |๐‘ˆ๐‘–> 0 and

๐”ค2 |๐‘‰๐‘—โ€ฒ โˆ’๐”ค2 |๐‘‰๐‘—> 0, for det(๐ทโ„Ž) to be positive, ๐‘™๐‘ˆ๐‘–โ€ฒ +๐‘–

โ€ฒYโˆ’ (๐‘™๐‘ˆ๐‘–+๐‘–Y) and

๐‘™๐‘‰๐‘—โ€ฒ + ๐‘— โ€ฒY โˆ’ (๐‘™๐‘‰๐‘—+ ๐‘—Y) must be of the same sign. This being necessary

for all blocks, and by continuity, it means signs must be the sameon all the blocks. Being able to consider that ๐‘™๐‘ˆ๐‘–

= โˆ’๐‘™๐‘ˆ๐‘–, resp.๐‘‰๐‘— , for

all charts, we deduce constraint [C1], i.e. ๐‘™๐‘ˆ๐‘–โ‰ค ๐‘™๐‘ˆ๐‘–โ€ฒ and ๐‘™๐‘‰๐‘—

โ‰ค ๐‘™๐‘‰๐‘—โ€ฒ

on each block.

Research Report, LORIA 2020.

Page 12: Robust Quantization for Polycube Maps

Robust Quantization for Polycube Maps โ€ข 11

Fig. 15. Each of block of ฮฉ is mapped to a rectangle by ๐”ค, which gives achange of coordinate system.

B POSITIVITY OF det(๐ท๐น๐ฟ) UNDER [C1] AND [C2]By hypothesis [C1] and [C2]are satisfied by ๐ฟ. Formally it meansthat:

(1) the coefficient ๐‘Ž1, ๐‘Ž2 are positive (see Appendix A),(2) for any given edge of the block structure (๐‘ , ๐‘ก), โˆฅโ„Ž(๐‘ )โˆ’โ„Ž(๐‘ก)โˆฅ <

|๐ฟ |Y =โ‡’ ๐›ฟ (๐‘ ) = ๐›ฟ (๐‘ก).Our goal is to show that, under these assumptions, det(๐ท๐น๐ฟ) > 0.Letโ€™s study the determinant of the Jacobian of ๐น๐ฟ , using results ofAppendix A:

det(๐ท๐น๐ฟ) = det(๐ทโ„Ž โˆ’ ๐ท๐›ฟ)

= det

([(๐‘Ž1 00 ๐‘Ž2

)โˆ’

(๐œ•โ„Ž1๐œ•๐”ค1

๐œ•โ„Ž1๐œ•๐”ค2

๐œ•โ„Ž2๐œ•๐”ค1

๐œ•โ„Ž2๐œ•๐”ค2

)]๐ท๐”ค

)= det(๐ท๐”ค)

[(๐‘Ž1 โˆ’

๐œ•๐›ฟ1๐œ•๐”ค1

) (๐‘Ž2 โˆ’

๐œ•๐›ฟ2๐œ•๐”ค2

)โˆ’ ๐œ•๐›ฟ1

๐œ•๐”ค2

๐œ•๐›ฟ2๐œ•๐”ค1

]Recalling that, by construction (see Sec. 4.1.2), | ๐œ•๐›ฟ๐‘–๐œ•๐”ค๐‘—

| < |๐ฟ |Y, we candistinguish two cases :1. ๐‘Ž1 โ‰ฅ 1 and ๐‘Ž2 โ‰ฅ 1:

In this case, Y can be chosen sufficiently small such that(๐‘Ž1 โˆ’ ๐œ•๐›ฟ1

๐œ•๐”ค1

)and

(๐‘Ž2 โˆ’ ๐œ•๐›ฟ2

๐œ•๐”ค2

)are positive, and ๐œ•๐›ฟ1

๐œ•๐”ค2๐œ•๐›ฟ2๐œ•๐”ค1

is negligible against ๐‘Ž1๐‘Ž2.2. 1 > ๐‘Ž1 > 0 or (inclusive) 1 > ๐‘Ž2 > 0:This case is the most difficult. By construction of โ„Ž, having 1 > ๐‘Ž๐‘– >

0 implies that ๐‘Ž๐‘– is of order Y. In the following, using assumption(2), we will show that if ๐‘Ž๐‘– is of order Y, then ๐œ•๐›ฟ1

๐œ•๐”ค๐‘–=

๐œ•๐›ฟ2๐œ•๐”ค๐‘–

= 0, whichwill allow us to concludes that det(๐น๐ฟ) > 0.

First, we must recall that each block of ฮฉ is mapped to a rectangle,with (๐”ค1, ๐”ค2) the new coordinate system, refer to Fig. 15. From this,we notice that along an edge (๐‘ , ๐‘ก) of direction ๐”ค1 we have โˆฅโ„Ž(๐‘ ) โˆ’โ„Ž(๐‘ก)โˆฅ = ๐‘Ž1 (๐”ค1 (๐‘ ) โˆ’ ๐”ค1 (๐‘ก)), which means that โˆฅโ„Ž(๐‘ ) โˆ’ โ„Ž(๐‘ก)โˆฅ < |๐ฟ |Yimplies that ๐‘Ž1 is of order Y, and reciprocally as ๐”ค is a constant here.Subsequently, using the assumption (2), along an edge (๐‘ , ๐‘ก) of

direction ๐”ค1, โˆฅโ„Ž(๐‘ ) โˆ’ โ„Ž(๐‘ก)โˆฅ < |๐ฟ |Y =โ‡’ ๐›ฟ (๐‘ ) = ๐›ฟ (๐‘ก). Remark that๐›ฟ (๐‘ ) = ๐›ฟ (๐‘ก) is equivalent to ๐œ•๐›ฟ1

๐œ•๐”ค1=

๐œ•๐›ฟ2๐œ•๐”ค1

= 0 along the edge due tothe linearity of ๐›ฟ along (๐‘ , ๐‘ก). This means that ๐‘Ž1 of order Y implies๐œ•๐›ฟ1๐œ•๐”ค1

=๐œ•๐›ฟ2๐œ•๐”ค1

= 0. The same reasoning holds for ๐‘Ž2 and ๐”ค2.The final problem is to generalize this propriety to the rest of the

block (not just along edges). Our construction of ๐›ฟ is bilinear, usingthe coordinate of each vertex of the block. As the block is a rectanglein โ„Ž, both opposite edges behave the same, and the behavior of thoseedge will be interpolated linearly in the block. If ๐œ•๐›ฟ๐‘–

๐œ•๐”ค๐‘—= 0 on both

opposite edges, then ๐œ•๐›ฟ๐‘–๐œ•๐”ค๐‘—

= 0 in the whole block. Which means thatour result on the edge is also true in the block. โ– 

What about 3D ? In 3-dimension the proof is strictly equiv-alent. The only struggle is the development of the det, whichis a bit more tedious, but in the end, we find the same results.

C CALCULATION OF ๐ธ (โ„Ž)The functionโ„Ž is defined per block, ๐ธ (โ„Ž) can be expressed as follows:

๐ธ (โ„Ž) =โˆ‘

๐‘ block of ฮฉ

โˆซ๐‘

โˆฅโˆ‡โ„Ž1 (๐‘‹ ) โˆ’โˆ‡๐”ค1 (๐‘‹ )โˆฅ + โˆฅโˆ‡โ„Ž2 (๐‘‹ ) โˆ’โˆ‡๐”ค2 (๐‘‹ )โˆฅ๐‘‘๐‘‹

With๐‘ a block of ฮฉ limited by the iso-lines from the charts๐‘ˆ๐‘– ,๐‘ˆ๐‘–โ€ฒ,๐‘‰๐‘—

and๐‘‰๐‘— โ€ฒ (cf. fig 9),โ„Ž1 is defined such thatโ„Ž1 (๐‘‹ ) = ๐‘™๐‘ˆ๐‘–โ€ฒโˆ’๐‘™๐‘ˆ๐‘–+(๐‘–โ€ฒโˆ’๐‘–)Y

๐”ค1 |๐‘ˆ๐‘–โ€ฒโˆ’๐”ค1 |๐‘ˆ๐‘–

๐”ค1 (๐‘‹ )+const (see Appendix A). This give us the following :โˆซ

๐‘

โˆฅโˆ‡โ„Ž1 (๐‘‹ ) โˆ’ โˆ‡๐”ค1 (๐‘‹ )โˆฅ๐‘‘๐‘‹

=

โˆซ๐‘

( ๐‘™๐‘ˆ๐‘–โ€ฒ โˆ’ ๐‘™๐‘ˆ๐‘–+ (๐‘– โ€ฒ โˆ’ ๐‘–)Y

๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–

โˆ’ 1)โˆ‡๐”ค1 (๐‘‹ )

๐‘‘๐‘‹=

๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๐‘™๐‘ˆ๐‘–โ€ฒ โˆ’ ๐‘™๐‘ˆ๐‘–+ (๐‘– โ€ฒ โˆ’ ๐‘–)Y

๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–

โˆ’ 1

๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ โˆซ๐‘ โˆฅโˆ‡๐”ค1 (๐‘‹ )โˆฅ ๐‘‘๐‘‹

=

๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ ๐‘™๐‘ˆ๐‘–โ€ฒ โˆ’ ๐‘™๐‘ˆ๐‘–+ (๐‘– โ€ฒ โˆ’ ๐‘–)Y โˆ’ (๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–

)๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–

๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ โˆซ๐‘ โˆฅโˆ‡๐”ค1 (๐‘‹ )โˆฅ ๐‘‘๐‘‹

=๏ฟฝ๏ฟฝ๐‘™๐‘ˆ๐‘–โ€ฒ โˆ’ ๐‘™๐‘ˆ๐‘–

+ (๐‘– โ€ฒ โˆ’ ๐‘–)Y โˆ’ (๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–)๏ฟฝ๏ฟฝ โˆซ๐‘ โˆฅโˆ‡๐”ค1 (๐‘‹ )โˆฅ ๐‘‘๐‘‹|๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–

|

We denote ๐›ผ1 =

โˆซ๐‘โˆฅโˆ‡๐”ค1 (๐‘‹ ) โˆฅ๐‘‘๐‘‹|๐”ค1 |๐‘ˆ๐‘–โ€ฒโˆ’๐”ค1 |๐‘ˆ๐‘–

| and passing to the limits, it gives :

limYโ†’0

โˆซ๐‘

โˆฅโˆ‡โ„Ž1 (๐‘‹ ) โˆ’ โˆ‡๐”ค1 (๐‘‹ )โˆฅ๐‘‘๐‘‹ = ๐›ผ1๏ฟฝ๏ฟฝ๐‘™๐‘ˆ๐‘–โ€ฒ โˆ’ ๐‘™๐‘ˆ๐‘–

โˆ’ (๐”ค1 |๐‘ˆ๐‘–โ€ฒ โˆ’ ๐”ค1 |๐‘ˆ๐‘–)๏ฟฝ๏ฟฝ

We do the same calculation for โ„Ž2 with ๐›ผ2 and it results in equa-tion (4).

Research Report, LORIA 2020.