The P\+I\+P\+E\+R application allows versatile workflows by sequencing different modules.

The following pages explore a few example workflows that you can try.

\begin{table}[h]\begin{TabularC}{3}
\hline
\rowcolor{lightgray}{\bf Workflow }&{\bf Model }&{\bf Modules used  }\\\cline{1-3}
\hyperlink{workflowAnthropoPersonalizationRegression}{Scaling H\+B\+M using anthropometry}  &G\+H\+B\+M\+C M50 &\hyperlink{moduleAnthropometricPersonalization}{Anthropo Module}, \hyperlink{modulescalingconstr}{Scaling Constraint Module}   \\\cline{1-3}
\hyperlink{workflowPositioningSmoothing}{Pre-\/crash positioning and smoothing}  &Child &\hyperlink{modulePhysPosiInter}{Pre-\/\+Positioning Module}, \hyperlink{modulemeshoptim}{Smoothing module}   \\\cline{1-3}
\hyperlink{workflowPositioningSpinePrediction}{Positioning with spine posture prediction}  &G\+H\+B\+M\+C M50 &\hyperlink{modulePhysPosiInter}{Pre-\/\+Positioning Module}   \\\cline{1-3}
\hyperlink{workflowContourDeformationTargetBasedPositioning}{Model Contour Deformation Target Based Positioning}  &G\+H\+B\+M\+C M50 &\hyperlink{modulePhysPosiInter}{Pre-\/\+Positioning Module}, \hyperlink{moduleContourDeformation}{Contour Deformation Module}   \\\cline{1-3}
\hyperlink{workflowANSURContDeformPersonalize}{Model Contour Deformation Target Based Personalization}  &G\+H\+B\+M\+C M50 &\hyperlink{moduleAnthropometricPersonalization}{Anthropo Module}, \hyperlink{moduleContourDeformation}{Contour Deformation Module}   \\\cline{1-3}
\hyperlink{workflowScriptPartialExportToObj}{Export Partial parts of the mesh to Obj format a re-\/import it to Piper}  &G\+H\+B\+M\+C M50 &any module 

\\\cline{1-3}
\end{TabularC}
\centering
\caption{List of workflows}
\end{table}
\hypertarget{workflowAnthropoPersonalizationRegression}{}\subsection{Scaling H\+B\+M using anthropometry}\label{workflowAnthropoPersonalizationRegression}
This workflow will show you how to generate target files of coherent anthropometric dimensions by using the \hyperlink{moduleAnthropometricPersonalization}{Anthropo Module} and use them to scale a Human Body Model.

~\newline
\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoCreateTargets}{}\subsubsection{Create target file}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoCreateTargets}
\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoSetUpAnthroModule}{}\paragraph{Set up the anthropometry module}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoSetUpAnthroModule}

\begin{DoxyItemize}
\item Open the \hyperlink{moduleAnthropometricPersonalization}{Anthropo Module}.
\item Click on \char`\"{}\+From dataset\char`\"{} in the right menu.
\end{DoxyItemize}\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoGenerateNewRegressionFile}{}\paragraph{Generate a new regression file}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoGenerateNewRegressionFile}
To generate some target files, you will first need to generate a regression file (if you already have a regression file, you can load it by clicking on \char`\"{}\+Existing regression\char`\"{} in the \char`\"{}\+Generate target from\char`\"{} subsection).


\begin{DoxyItemize}
\item Click on \char`\"{}\+New regression\char`\"{}. A new subsection will appear\+: \char`\"{}\+Dataset\+Options\char`\"{}.
\item Click on \char`\"{}\+Select Dataset\char`\"{} button, and then select the \char`\"{}\+Adult Dataset(\+A\+N\+S\+U\+R)\char`\"{}
\item Now we select the predictors we want our regression file to be based upon. For this example, select \char`\"{}\+S\+T\+A\+T\+U\+R\+E\char`\"{} and \char`\"{}\+C\+A\+L\+F\+\_\+\+C\+I\+R\+C\char`\"{}.
\item Then click one the \char`\"{}\+Set Population Descriptors\char`\"{} subsection, select one bin, representing 100\% of the population, with the gender as \char`\"{}male\char`\"{}, and set the age from 30 to 40 years.
\end{DoxyItemize}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_GHBMC_anthropoPersonalizing_anthroGUI_setPop.png}
\caption{Input data in the G\+U\+I}
\end{DoxyImage}
\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoDefineSampleInfo}{}\paragraph{Define samples information}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoDefineSampleInfo}
Now it is time to define the target values for the anthropometric measurements that we have chosen.


\begin{DoxyItemize}
\item Click on \char`\"{}\+Define target information\char`\"{} subsection.
\item Select a \char`\"{}sample type\char`\"{} -\/ choose \char`\"{}\+Mean\+Only\char`\"{}.
\item Select a \char`\"{}sample input type\char`\"{} -\/ choose \char`\"{}\+Fixed predictor\char`\"{}. A new subsection called \char`\"{}\+Set Predictor Values\char`\"{} appears, that will allow you to set values for the previously selected predictors.
\item Leave \char`\"{}sample output type\char`\"{} as \char`\"{}\+Normal\char`\"{}.
\end{DoxyItemize}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_GHBMC_anthropoPersonalizing_anthroGUI_setTargetInfo.png}
\caption{Input data in the G\+U\+I}
\end{DoxyImage}



\begin{DoxyItemize}
\item In the \char`\"{}\+Set Predictor Values\char`\"{} subsection, set the values for \char`\"{}\+S\+T\+A\+T\+U\+R\+E\char`\"{} to 1890 and \char`\"{}\+C\+A\+L\+F\+\_\+\+C\+I\+R\+C\char`\"{} to 380. (the unit for any length or circumference on the G\+H\+B\+M model are milimeters. The original values of the G\+H\+B\+M is 1790 mm for stature and 354 mm for calf cirumference).
\end{DoxyItemize}\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoDefineOutputInfo}{}\paragraph{Define output information}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoDefineOutputInfo}
In this section we will define paths for the target output file, and the regression file if wanted.


\begin{DoxyItemize}
\item Click on \char`\"{}\+Set Target File path\char`\"{}, and define the location you want to save the target file in, in the right menu.
\item By defaut, the regression file are save in the Piper temporary folder. That\textquotesingle{}s why, if you click on \char`\"{}\+Set Regression File Path\char`\"{}, you will see the \char`\"{}\+No\char`\"{} selected by default under the question \char`\"{}\+Save Regression ?\char`\"{} question. If you want to save the regression in a particular location, choose \char`\"{}\+Yes\char`\"{} and define the desired path for the regression path.
\end{DoxyItemize}\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoGeneFiles}{}\paragraph{Generate files}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoGeneFiles}
Once your regression and sample information is defined, all the trafic lights should be green, and now you can click on the \char`\"{}\+Generate Targets\char`\"{} button. It will create the target file in the specified directory. Once you have generated some target files with the anthropometry module, you are able to use them across piper modules to personalize your model.\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoPersonalize}{}\subsubsection{Personalize the model}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoPersonalize}
You can use the \hyperlink{modulescalingconstr}{Scaling Constraint Module} to link the set of anthropometric targets to the H\+B\+M through a Simplified Scalable Model. An example of Simplified Scalable Model designed for anthropometric dimensions defined in A\+N\+S\+U\+R database can be found \href{https://gitlab.inria.fr/piper/misc_models}{\tt here}\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroInputs}{}\paragraph{Import Simplified Scalable Model}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroInputs}

\begin{DoxyItemize}
\item Open the model, either through an existing P\+I\+P\+E\+R project or by importing a new one.(see \hyperlink{pageGui_secGuiMenuProject}{Project menu}).
\item Import the target file you generated in the \hyperlink{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoDefineSampleInfo}{Define samples information} step using the \hyperlink{pageGui_secGuiMenuTarget}{Target menu}.
\item Click on the \char`\"{}\+Anthropo. Model\char`\"{} button and then on \char`\"{}\+Import Anthropo. Model.\char`\"{} and select xml file with the description of the Simplified Scalable Model for A\+N\+S\+U\+R. (A\+N\+S\+U\+R\+\_\+\+Anthropo\+Model.\+xml if you use the one we have download from the link above.)
\end{DoxyItemize}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_anthropoTargetGeneration_screenshot_01.png}
\caption{Import Simplified Scalable Model}
\end{DoxyImage}
\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoApplyTargets}{}\paragraph{Apply targets}\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoApplyTargets}

\begin{DoxyItemize}
\item Click on the \char`\"{}\+Target Dimensions\char`\"{} button and then on \char`\"{}\+Use current targets\char`\"{}. You should see something similar to Figure \hyperlink{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoI}{Source and target visualization} -\/ the simplified scalable model and associated control points are visualized in white color, the target in blue.
\item You can edit target values (double click on last column of the table after clicking on the \char`\"{}\+Adjust Target Dimensions\char`\"{} button)
\item To visualize a preview of bone and/or skin deformed shape, click on \char`\"{}\+Perform Deformation\char`\"{} button and select option to display intermediate skin (or bone) target. (\hyperlink{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoII}{Source and target visualization with preview})
\end{DoxyItemize}

\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoI}%
\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoI}{}%

\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_anthropoTargetGeneration_screenshot_02.png}
\caption{Source and target visualization}
\end{DoxyImage}


\label{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoII}%
\hypertarget{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoII}{}%

\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_anthropoTargetGeneration_screenshot_03.png}
\caption{Source and target visualization}
\end{DoxyImage}
 \hypertarget{workflowPositioningSmoothing}{}\subsection{Pre-\/crash positioning and smoothing}\label{workflowPositioningSmoothing}

\begin{DoxyEnumerate}
\item Import the Child model using the {\ttfamily Child\+\_\+model.\+pmr} and {\ttfamily Child\+\_\+model.\+dyn} files (see \hyperlink{pageGui_secGuiMenuProject}{Project menu})
\item In the module parameters (\hyperlink{pageGui_secGuimoduleParam}{Module parameters}), set bone collision off for {\itshape Physics based Positioning}
\item Start the {\bfseries Positioning} module and do some positioning tasks, for instance \+:
\begin{DoxyEnumerate}
\item Head positioning -\/ {\bfseries W\+A\+R\+N\+I\+N\+G\+: Head positioning broken with new child model, skip this step for now}\+:
\begin{DoxyEnumerate}
\item Fix both legs (\hyperlink{modulePhysPosiInter_secPhysPosiInterBone}{Fixed bone controller})
\item Display {\itshape World frames} to see the reference coordinate system (\hyperlink{modulePhysPosiInter_secModulePhysPosiInterDisplay}{Display settings})
\item Add a frame controller between {\bfseries W\+\_\+\+Origin} and {\bfseries B\+\_\+\+Skull} on x and y (\hyperlink{modulePhysPosiInter_secPhysPosiInterFrame}{Frame to frame controller})
\item Set x value to {\bfseries 400mm} 
\item Run the positioning until it is stable (\hyperlink{modulePhysPosiInter_secPhysPosiInterControl}{Simulation control})
\end{DoxyEnumerate}
\item Left arm positioning
\begin{DoxyEnumerate}
\item Fix all bones except the left arm, be sure to fix scapula and clavicle too
\item Display {\itshape Joint frames} to see the joint axis
\item Add joint controller for {\bfseries Left\+\_\+wirst}, {\bfseries Left\+\_\+elbow} and {\bfseries Left\+\_\+glenohumeral} (\hyperlink{modulePhysPosiInter_secPhysPosiInterJoint}{Joint controller})
\item Set Left\+\_\+elbow ry to {\bfseries -\/45°} and Left\+\_\+glenohumeral ry to {\bfseries -\/45°} 
\item Run the positioning until it is stable
\end{DoxyEnumerate}
\end{DoxyEnumerate}
\item You should get something similar to the following screenshot\+:
\end{DoxyEnumerate}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSmoothing_screenshot01.png}
\caption{Positionned child model}
\end{DoxyImage}

\begin{DoxyEnumerate}
\item Update the model nodes coordinates (\hyperlink{modulePhysPosiInter_secModulePhysPosiInterUpdate}{Model nodes update})
\item Start the {\bfseries Smoothing} module
\begin{DoxyEnumerate}
\item Open {\itshape Crease Detection}, a window will pop up. Do these actions in it\+:
\begin{DoxyEnumerate}
\item Select the imported from history model as baseline
\item Select {\itshape Left\+\_\+upper\+\_\+limb -\/$>$ Skin\+\_\+of\+\_\+left\+\_\+free\+\_\+upper\+\_\+limb }, {\itshape  Body\+\_\+proper -\/$>$ Skin\+\_\+of\+\_\+trunk}, {\itshape  Left\+\_\+lower\+\_\+limb -\/$>$ Skin\+\_\+of\+\_\+left\+\_\+free\+\_\+lower\+\_\+limb} and {\itshape  Right\+\_\+lower\+\_\+limb -\/$>$ Skin\+\_\+of\+\_\+right\+\_\+free\+\_\+lower\+\_\+limb} entities to be processed
\item Check both the \char`\"{}\+Generate boxes...\char`\"{} checkboxe on the bottom of the window, uncheck \char`\"{}\+See selection boxes\char`\"{}
\item Press Compute Quality (see \hyperlink{modulemeshoptim_creasedetection}{Surface crease detection} for details). This will perform automatic selection of damaged parts of the skin -\/ you can manually enhance this selection if you feel that the automatic one left out some part that should be considered as damage too.
\end{DoxyEnumerate}
\item Then open {\itshape Smooth Surface} and in the tool window do\+:
\begin{DoxyEnumerate}
\item Select the same entities as in the previous step
\item Check {\itshape Smooth only selected} (should be checked by default)
\item Press Smooth Surface (see \hyperlink{modulemeshoptim_surfacesmooth}{Smoothing the surface of an entity} for details). You should get something similar to the following screenshot\+: 
\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSmoothing_screenshot02.png}
\caption{Smoothed skin of the arm}
\end{DoxyImage}

\end{DoxyEnumerate}
\item The skin now looks better, but we can use \hyperlink{pageGui_secDisplay3DVtkBlanking}{Blanking} and \hyperlink{modulemeshoptim_meshoptimVtktoolkit}{V\+T\+K toolkit Quality metrics} to see that the inside elements are significantly distorted. {\itshape Note -\/ we no longer need the nodes to be selected, you may deselect them in order to \char`\"{}clean-\/up\char`\"{} the visualization.}
\begin{DoxyEnumerate}
\item Use element selection by box to select the left arm and half of the shoulder
\item Blank selected elements using the {\itshape Blank elements} tool
\item Use the {\itshape Compute Quality} tool too see the element quality -\/ the color scale setting can be seen on the screenshot (white elements are elements out of the scale, in this case with scaled jacobian below -\/0.\+3)\+: 
\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSmoothing_screenshot03.png}
\caption{Internal element quality of shoulder}
\end{DoxyImage}

\end{DoxyEnumerate}
\item We will smooth the transformation to get a better result\+:
\begin{DoxyEnumerate}
\item Use the \hyperlink{pageGui_secDisplay3DVtkPicking}{Picking} toolbox to create a box around the shoulder area, similar to the one in the following figure (we used the node box picking and held C\+T\+R\+L so that no points were selected, but anything that will create some box will do the job)\+: 
\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSmoothing_screenshot04.png}
\caption{Box for transformation smoothing}
\end{DoxyImage}

\item Open the \hyperlink{modulemeshoptim_meshoptimTranssmoothing}{Transformation smoothing} window
\item Select the whole {\itshape Body\+\_\+proper} and {\itshape Left\+\_\+upper\+\_\+limb} regions -\/ not only the skin, but whole regions, this way both the bones and the skin will be used as targets.
\item Press {\itshape Smooth by kriging}, wait for the result
\item Compute the element quality again using the same color-\/scale. As you can see in the followin figure, the element quality will increase significantly\+:
\item Now you can repeat this step (6d) in a similar way to smooth the hip joints region as well -\/ or do it all at once, the \hyperlink{modulemeshoptim_meshoptimTranssmoothing}{Transformation smoothing} will process all boxes that you create. However, don\textquotesingle{}t forget to additionally select entities relevant as targets for the hip smoothing, i.\+e. both lower limbs 
\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSmoothing_screenshot05.png}
\caption{After transformation smoothing}
\end{DoxyImage}

\end{DoxyEnumerate}
\end{DoxyEnumerate}
\item And finally you can export the positionned model back to the F\+E code format in the \hyperlink{pageGui_secGuiMenuProject}{Project menu} 
\end{DoxyEnumerate}\hypertarget{workflowPositioningSpinePrediction}{}\subsection{Positioning with spine posture prediction}\label{workflowPositioningSpinePrediction}

\begin{DoxyEnumerate}
\item Import the G\+H\+B\+M model using the {\ttfamily G\+H\+B\+M\+C\+\_\+\+M50\+\_\+v4-\/1-\/1\+\_\+description\+\_\+\+L\+S\+Dyna.\+pmr} and {\ttfamily G\+H\+B\+M\+C\+\_\+\+M50-\/\+O\+\_\+\+Main.\+dyn} files (see \hyperlink{pageGui_secGuiMenuProject}{Project menu})
\item In the module parameters (\hyperlink{pageGui_secGuimoduleParam}{Module parameters}), set bone collision {\bfseries off} for {\itshape Physics based Positioning}
\item Start the {\itshape Positioning} module and do some spine positioning using the physiological spine predictor \+:
\begin{DoxyItemize}
\item Fix both legs (\hyperlink{modulePhysPosiInter_secPhysPosiInterBone}{Fixed bone controller})
\item Enable the {\itshape Spine} predictor from the sec\+Module\+Phys\+Posi\+Inter\+Predictors
\item For source posture select {\bfseries Seating erect}, for target select {\bfseries Forward flexed}, keep posture value to {\bfseries 0}, keep align on gravity {\bfseries on} and {\itshape Update} 
\item Set time step to {\bfseries 0.\+01}, run the positioning until it is stable, if necessary reduce the simulation time-\/step (\hyperlink{modulePhysPosiInter_secPhysPosiInterControl}{Simulation control})
\item It is then advised to run several iterative predictions by gradually increasing and updating the stiffness of the spine/pelvis frame attractors until the solution is stable. This is in particular required to update the absolute orientation of the spine precisely when the \textquotesingle{}Align on gravity\textquotesingle{} option is on
\end{DoxyItemize}
\item You should get something similar to the following screenshot\+: 
\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSpinePrediction_sceenshot01.png}
\caption{Spine posture predictor on G\+H\+B\+M model, fixed bones, and automatically added pelvis orientation controller}
\end{DoxyImage}

\item Now let\textquotesingle{}s do some more spine positioning \+:
\begin{DoxyEnumerate}
\item Be sure the simulation is stopped
\item Fix the pelvis to keep its posture orientation
\item Deactivate the {\itshape Spine} predictor
\item Open the \hyperlink{modulePhysPosiInter_secPhysPosiInterSpine}{Spine controller}, select {\bfseries C1}, {\bfseries T1}, {\bfseries T12} and {\bfseries L5} as spline control points
\item Activate the {\bfseries mouse spine interactor}
\item Adjust the \hyperlink{modulePhysPosiInter_secModulePhysPosiInterDisplay}{Display settings}, align a view on the back of the G\+H\+B\+M to be confortable to edit the spline and give it a scoliosis shape, you can obtain some thing like \+: 
\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSpinePrediction_sceenshot02.png}
\caption{Scoliosis spine shape}
\end{DoxyImage}

\item Run the positioning until it is stable, if necessary reduce the simulation time-\/step 
\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_positioningSpinePrediction_sceenshot03.png}
\caption{Scoliosis spine shape reached}
\end{DoxyImage}
 
\end{DoxyEnumerate}
\end{DoxyEnumerate}\hypertarget{workflowContourDeformationTargetBasedPositioning}{}\subsection{Model Contour Deformation Target Based Positioning}\label{workflowContourDeformationTargetBasedPositioning}
A) I\+M\+P\+O\+R\+T T\+H\+E G\+H\+B\+M M\+O\+D\+E\+L
\begin{DoxyEnumerate}
\item import a H\+B\+M from its vendor format files (see Project menu)
\item check and explore the imported model with the Check Module
\end{DoxyEnumerate}B) T\+A\+R\+G\+E\+T B\+A\+S\+E\+D P\+O\+S\+I\+T\+I\+O\+N\+I\+N\+G (I\+M\+P\+O\+R\+T\+I\+N\+G T\+A\+R\+G\+E\+T F\+R\+O\+M I\+N\+T\+E\+R\+A\+C\+T\+I\+V\+E M\+O\+D\+U\+L\+E)
\begin{DoxyEnumerate}
\item Import the target file using Target Menu
\item Go to Contour Deformation Module
\item Press Positioning button on the side bar.
\end{DoxyEnumerate}

This will open a new window having controls for re-\/positioning the H\+B\+M
\begin{DoxyEnumerate}
\item Press \char`\"{}\+Load Contour\+C\+L file\char`\"{} button to open the contour\+C\+L.\+xml. This step will cause yellow colored control lines to appear with the model display. These control lines provide a guiding structure for the generation of Contours around the H\+B\+M. It is also used in the Target Based Repositioning for traversal around the various Body Regions and to find the joint angles.
\item Press \char`\"{}\+Use Landmark Targets\char`\"{} switch to go into re-\/positioning based on Targets mode.
\item The target processing is an iterative process. The body regions are traversed along the contour\+C\+L structure. In order to start this iterative process follow the instructions below\+:
\begin{DoxyEnumerate}
\item Press \char`\"{}\+Process Landmark Targets button\char`\"{}. Please note as of now only Landmark Targets are supported.
\item The immutable fields Joint,Side, Type and Angle will get populated automatically. Please note, currently only flexion-\/extension is supported in this Mode.
\item Press \char`\"{}\+Generate Contours\char`\"{} button in order to generate the contours around the H\+B\+M.
\item Press \char`\"{}\+Deform Contours\char`\"{} button in order to deform the contours according to the computed Joint,Side,Type and Angle computed in the Step 6-\/b.
\item Press \char`\"{}\+Reposition\char`\"{} button. This will run the contour based repositioning algo to deform the model, based on information synthesized from Landmark Targets.
\item Press \char`\"{}\+Continue\char`\"{} button to move on to the next target for the remaining body regions, until all the body regions are processed.
\item If the computed angle is zero, stop.
\end{DoxyEnumerate}
\end{DoxyEnumerate}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{moduleContourDeformationReposUsingTargetsSteps.png}
\caption{Workflow For Contour Deformation Positioning Using Landmark Targets}
\end{DoxyImage}
 \hypertarget{workflowANSURContDeformPersonalize}{}\subsection{Model Contour Deformation Target Based Personalization}\label{workflowANSURContDeformPersonalize}
\hypertarget{workflowANSURContDeformPersonalize_workflow_conPersoGenerateTargets}{}\subsubsection{Generate Target Files}\label{workflowANSURContDeformPersonalize_workflow_conPersoGenerateTargets}

\begin{DoxyEnumerate}
\item Open the Anthropometry module.
\item Click on \char`\"{}\+Create Anthropometry\char`\"{} button on the right menu.
\item Select \char`\"{}\+Generate a new regression file\char`\"{}.
\item Select \char`\"{}\+B\+M\+I\char`\"{} \char`\"{}\+W\+E\+I\+G\+H\+T\char`\"{} \char`\"{}\+S\+T\+A\+T\+U\+R\+E\char`\"{} as predictors, and define a population of two bins. One representing males and the second one representing females. Please refer to \hyperlink{workflowAnthropoPersonalizationRegression_wrkfl_anthroPersoGenerateNewRegressionFile}{Generate a new regression file} for details about how to create a regression file.
\item Click on \char`\"{}\+Define sample information\char`\"{}.
\item Select \char`\"{}\+Mean\+Only\char`\"{} as sample type.
\item Set a name to the mean\+Only output target file. {\bfseries This is the file you will need for the \hyperlink{workflowANSURContDeformPersonalize_workflow_conPersoPersonalize}{Target Based Personalization (Importing target from anthropometry module)}.}
\item Select \char`\"{}\+Fixed predictor\char`\"{} as sample input type.
\item A list of predictor that you selected for the regression file should appear at the bottom of the window. Set the folowing values\+: B\+M\+I = 25, W\+E\+I\+G\+H\+T = 730 and S\+T\+A\+T\+U\+R\+E = 1750.
\item Select \char`\"{}\+Normal\char`\"{} as sample output type.
\item Click on the green arrow to generate the regression and target file.
\end{DoxyEnumerate}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{workflow_Personalizing_GHBMC_Model_Contour_Deformation_Target_Based_Personaliztion02.png}
\caption{Input data in the G\+U\+I}
\end{DoxyImage}
\hypertarget{workflowANSURContDeformPersonalize_workflow_conPersoImportModel}{}\subsubsection{Import G\+H\+B\+M Model}\label{workflowANSURContDeformPersonalize_workflow_conPersoImportModel}

\begin{DoxyEnumerate}
\item Import a H\+B\+M from its vendor format files (see Project menu).
\item Check and explore the imported model with the \hyperlink{modulecheck}{Check Module}.
\end{DoxyEnumerate}\hypertarget{workflowANSURContDeformPersonalize_workflow_conPersoPersonalize}{}\subsubsection{Target Based Personalization (\+Importing target from anthropometry module)}\label{workflowANSURContDeformPersonalize_workflow_conPersoPersonalize}

\begin{DoxyEnumerate}
\item Open the \hyperlink{moduleContourDeformation}{Contour Deformation Module}.
\item Open the Personalization window by clicking the \char`\"{}\+Personalize\char`\"{} button on the right panel.
\item Click the \char`\"{}\+Load Personalization Contours\char`\"{} button and select the Personalization\+\_\+\+Contours.\+txt file to load the personalizaiton contours. You will find it in the metadata folder of the G\+H\+B\+M model.
\item Click the \char`\"{}\+Load Body Data\char`\"{} button and select the Body\+Data.\+txt file to load the personalization ratios. You will find it in the metadata folder of the G\+H\+B\+M model.
\item Click the \char`\"{}\+Load Anthropometric Target File\char`\"{} button and select the target file you created in the \hyperlink{workflowANSURContDeformPersonalize_workflow_conPersoGenerateTargets}{Generate Target Files} part (step 7).
\item Choose \char`\"{}\+Anthropometric target values\char`\"{} in the \char`\"{}\+Options\char`\"{}.
\item Click on the \char`\"{}\+Personalize\char`\"{} button to personalize the model.
\end{DoxyEnumerate}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{moduleContourDeformationPersoUsingAnthroTargetsSteps.png}
\caption{Workflow For Contour Deformation Personalization Using Anthropometric Targets}
\end{DoxyImage}
 \hypertarget{workflowScriptPartialExportToObj}{}\subsection{Export Partial parts of the mesh to Obj format a re-\/import it to Piper}\label{workflowScriptPartialExportToObj}
This workflow come after a position modification or a personalization of the model within piper that went wrong.

If one of the points are not in correct location, or if you want to smooth a part of the model after a transformation, this workflow will show you how to edit a part of the Piper mesh with your favorite 3\+D engine software. Note that you can use the scritps \textquotesingle{}export\+Selected\+Geometry\+To\+Dyna\textquotesingle{} \& \textquotesingle{}update\+Nodesfrom\+Dyna\textquotesingle{} the same way as this workflow to work with the Ls\+Dyna file format.


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{exportToObjWorkflow1.png}
\caption{Example of disorted model}
\end{DoxyImage}
\hypertarget{workflowScriptPartialExportToObj_workflow_exportToObjFile}{}\subsubsection{Export to Obj file}\label{workflowScriptPartialExportToObj_workflow_exportToObjFile}

\begin{DoxyEnumerate}
\item Open the picking window from any module. Make sure that the option \char`\"{}visualize full model\char`\"{} is unchecked in the Entity Display window. Export supports only selection on model (non blanked) entities.
\item Click on \char`\"{}\+Box element Picker\char`\"{}
\item Select the part of the mesh you want to export with the box picking tool.
\end{DoxyEnumerate}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{exportToObjWorkflow2.png}
\caption{Select the disorted parts}
\end{DoxyImage}



\begin{DoxyEnumerate}
\item Click on \char`\"{}\+Scripting\char`\"{} tab from the upper menu and select \char`\"{}run script\char`\"{}
\item Select the script \char`\"{}\+Export\+Selected\+Geometry\+To\+Obj\char`\"{} located in\+: \char`\"{}piper/share/example/scripting/\char`\"{} folder.
\item As arguments, put the path of the output .obj file you want to generate, and click on \char`\"{}\+Ok\char`\"{}
\end{DoxyEnumerate}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{ExportFromPiperToObj.png}
\caption{Example of how to use the script menu in Piper}
\end{DoxyImage}
\hypertarget{workflowScriptPartialExportToObj_workflow_EditObj}{}\subsubsection{Edit the obj file}\label{workflowScriptPartialExportToObj_workflow_EditObj}
Now you can edit the obj file within a 3rd party 3d software. The tests for this workflow have been done with Meshlab that you can find\+: \href{http://www.meshlab.net}{\tt here}


\begin{DoxyEnumerate}
\item Open Meshlab and import the obj file you just extracted from piper.
\item Do a modification on the mesh, like applying a smoothing algorithm.
\end{DoxyEnumerate}


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{exportToObjWorkflow5.png}
\caption{Example of how to use the script menu in Piper}
\end{DoxyImage}



\begin{DoxyEnumerate}
\item When it\textquotesingle{}s done, export the model as an .obj and overwrite the one you exported previously from P\+I\+P\+E\+R application.
\end{DoxyEnumerate}\hypertarget{workflowScriptPartialExportToObj_workflow_ImportBackObj}{}\subsubsection{Import the obj back to Piper}\label{workflowScriptPartialExportToObj_workflow_ImportBackObj}

\begin{DoxyEnumerate}
\item Go back to the Piper application.
\item Click on the \char`\"{}\+Scripting\char`\"{} tab again.
\item Select the script \char`\"{}\+Update\+Nodes\+From\+Obj\char`\"{} within the same script folder.
\item Give the path for your obj file and a name to be stored in the model history as an argument. example \char`\"{}c\+:/path/to/obj/file.\+obj model\+With\+Smoothed\+Hips\char`\"{}
\item Click on \char`\"{}\+Ok\char`\"{}
\end{DoxyEnumerate}

The selected part of the mesh that you extracted and modified in an other 3d application is now updated accordingly to the modifications you\textquotesingle{}ve done on it.


\begin{DoxyImage}
\includegraphics[width=0.8\textwidth]{exportToObjWorkflow4.png}
\caption{Smoothing part reimported on Piper}
\end{DoxyImage}


If you wish you can apply a 3\+D mesh smoothing algorithm on the model currently displayed in the Piper application. To do that you can read the folowing workflow\+: \hyperlink{workflowPositioningSmoothing}{Pre-\/crash positioning and smoothing} 