Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2018-03-13 00:18:42
Size: 872
Editor: BevinBrett
Comment:
Revision 12 as of 2018-03-25 04:28:40
Size: 291
Editor: BevinBrett
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Parent: MorphoOptimizationProject
Line 3: Line 5:
=== Creating shape manipulation functions ===
See [[MorphoOptimizationProject_Manipulating_MRIS_et_al]]
Line 4: Line 9:
Each face had a normal vector and area stored in the nx,ny,nz,orig_area members of the FACE struct.

mris_fix_topology has a hot loop

 ___: mrisComputeOptimalRetessellation and mrisComputeRandomRetessellation have a similar structure

___: ___: a computeDefectContext is constructed here

___:___: then it loops over a set of patches, or iterates on one patch. For each patch it calls

___:___:___: mrisDefectPatchFitness, which calls

___:___:___: ___: mrisComputeDefectLogLikelihood, which calls

___:___:___: ___: ___: mrisComputeDefectMRILogUnlikelihood, which

___:___:___: ___: ___:___: does an expensive computation all the face normals for ALL the faces

___:___:___: ___: ___:___: does two other expensive steps, which only use a few of the face normals
See [[MorphoOptimizationProject_Deferring_calculations]]

Parent: MorphoOptimizationProject

A variety of techniques have been used.

Creating shape manipulation functions

See MorphoOptimizationProject_Manipulating_MRIS_et_al

Deferring calculations until needed

See MorphoOptimizationProject_Deferring_calculations

MorphoOptimizationProject_BetterSerialCode_DeferCalculations (last edited 2021-09-22 09:46:34 by DevaniCordero)