Muscat.Containers.InriaMeshTools module

CheckIntegrity(GUI=False)[source]
flattenMetric(metric: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]][source]

Convert complete SDP metric to upper triangular coeff metric (mmg format)

Parameters:

metric (NDArray) – a field of complete SDP metric

Returns:

metric – a field of metrics a metric is a vector containing the dim2 = dim*(dim+1)/2 coefficients of the symmetric definite positive matrix

Return type:

NDArray

fullMetric(metric: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]][source]

Convert upper triangular coeff metric (mmg format) to complete SDP metric

Parameters:

metric (NDArray) – a field of metrics a metric is a vector containing the dim2 = dim*(dim+1)/2 coefficients of the symmetric definite positive matrix

Returns:

metric – a field of complete SDP matrices

Return type:

NDArray