Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Scaling/Downloads/Final_Download.zip
Binary file not shown.
12 changes: 4 additions & 8 deletions Scaling/Downloads/lesson1a.Main.any
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,17 @@ Main = {
// Todo. Add the model elements such as
// segments, joints, and muscles here.

AnySeg SourceFemur =
{
AnySeg SourceFemur = {
Mass = 0; Jii = {0, 0, 0};
AnyDrawSurf Surface =
{
AnyDrawSurf Surface = {
FileName = "SourceFemur.stl";
RGB = {222,202,176}/256;
};
};

AnySeg TargetFemur =
{
AnySeg TargetFemur = {
Mass = 0; Jii = {0, 0, 0};
AnyDrawSurf Surface =
{
AnyDrawSurf Surface = {
FileName = "TargetFemur.stl";
RGB = {256,256,0}/256;
};
Expand Down
46 changes: 21 additions & 25 deletions Scaling/Downloads/lesson1b.Main.any
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,47 @@ Main = {
// Todo. Add the model elements such as
// segments, joints, and muscles here.

AnySeg SourceFemur =
{
AnySeg SourceFemur = {
Mass = 0; Jii = {0, 0, 0};
AnyDrawSurf Surface =
{
AnyDrawSurf Surface = {
FileName = "SourceFemur.stl";
RGB = {222,202,176}/256;
};
AnyDrawSurf SurfaceMorphed =
{

AnyDrawSurf SurfaceMorphed = {
FileName = "SourceFemur.stl";
AnyFunTransform3D &ref = ..MyTransform3;
};
};

AnySeg TargetFemur =
{
AnySeg TargetFemur = {
Mass = 0; Jii = {0, 0, 0};
AnyDrawSurf Surface =
{
AnyDrawSurf Surface = {
FileName = "TargetFemur.stl";
RGB = {256,256,0}/256;
};

};

AnyFunTransform3DLin2 MyTransform =
{
AnyFunTransform3DLin2 MyTransform = {
//PreTransforms = {};
Points0 =
{{-0.00906139, 0.36453, 0.0175591}, // fovea capitis
{0.0358368, -0.0100391, -0.0162062}, // lateral anterior condyle
{0.0295267, -0.0112881, 0.0194889}, // medial anterior condyle
{0.0282045, 0.157599, -0.0172379}, // anterior mid shaft
{-0.0245689, -0.00701566, -0.0238393}, // lateral posterior condyle
{-0.0320739, -0.00877602, 0.0244234}};// medial posterior condyle
Points0 = {
{-0.00906139, 0.36453, 0.0175591}, // fovea capitis
{0.0358368, -0.0100391, -0.0162062}, // lateral anterior condyle
{0.0295267, -0.0112881, 0.0194889}, // medial anterior condyle
{0.0282045, 0.157599, -0.0172379}, // anterior mid shaft
{-0.0245689, -0.00701566, -0.0238393}, // lateral posterior condyle
{-0.0320739, -0.00877602, 0.0244234} // medial posterior condyle
};

Points1 =
{{0.289913,0.420538,0.0138931}, // fovea capitis
Points1 = {
{0.289913,0.420538,0.0138931}, // fovea capitis
{0.322038,0.433232,-0.378636}, // lateral anterior condyle
{0.289309,0.426839,-0.372994}, // medial anterior condyle
{0.328859,0.425856,-0.175012}, // anterior mid shaft
{0.306293,0.487243,-0.370319}, // lateral posterior condyle
{0.261891,0.47585,-0.372696}}; // medial posterior condyle
{0.261891,0.47585,-0.372696} // medial posterior condyle
};

Mode = VTK_LANDMARK_AFFINE;
};

Expand All @@ -68,8 +65,7 @@ Main = {
Mode = VTK_LANDMARK_RIGIDBODY;
};

AnyFunTransform3DIdentity MyTransform3 =
{
AnyFunTransform3DIdentity MyTransform3 = {
PreTransforms = {&.MyTransform,&.MyTransform2};
};

Expand Down
68 changes: 33 additions & 35 deletions Scaling/Downloads/lesson1c.Main.any
Original file line number Diff line number Diff line change
Expand Up @@ -15,55 +15,53 @@ Main = {
// Todo. Add the model elements such as
// segments, joints, and muscles here.

AnySeg SourceFemur =
{
AnySeg SourceFemur = {
Mass = 0; Jii = {0, 0, 0};
AnyDrawSurf Surface =
{
AnyDrawSurf Surface = {
FileName = "SourceFemur.stl";
RGB = {222,202,176}/256;
};
AnyDrawSurf SurfaceMorphed =
{

AnyDrawSurf SurfaceMorphed = {
FileName = "SourceFemur.stl";
AnyFunTransform3D &ref = ..MyTransform3;
};
AnyDrawSurf SurfaceMorphedRBF =
{

AnyDrawSurf SurfaceMorphedRBF = {
FileName = "SourceFemur.stl";
AnyFunTransform3D &ref = ..MyRBFTransform;
RGB={1,0,0};
};
};
}; // AnySeg SourceFemur

AnySeg TargetFemur =
{
AnySeg TargetFemur = {
Mass = 0; Jii = {0, 0, 0};
AnyDrawSurf Surface =
{
AnyDrawSurf Surface = {
FileName = "TargetFemur.stl";
RGB = {256,256,0}/256;
};

};

AnyFunTransform3DLin2 MyTransform =
{
AnyFunTransform3DLin2 MyTransform = {
//PreTransforms = {};
Points0 =
{{-0.00906139, 0.36453, 0.0175591}, // fovea capitis
{0.0358368, -0.0100391, -0.0162062}, // lateral anterior condyle
{0.0295267, -0.0112881, 0.0194889}, // medial anterior condyle
{0.0282045, 0.157599, -0.0172379}, // anterior mid shaft
{-0.0245689, -0.00701566, -0.0238393}, // lateral posterior condyle
{-0.0320739, -0.00877602, 0.0244234}};// medial posterior condyle
Points1 =
{{0.289913,0.420538,0.0138931}, // fovea capitis
Points0 = {
{-0.00906139, 0.36453, 0.0175591}, // fovea capitis
{0.0358368, -0.0100391, -0.0162062}, // lateral anterior condyle
{0.0295267, -0.0112881, 0.0194889}, // medial anterior condyle
{0.0282045, 0.157599, -0.0172379}, // anterior mid shaft
{-0.0245689, -0.00701566, -0.0238393}, // lateral posterior condyle
{-0.0320739, -0.00877602, 0.0244234} // medial posterior condyle
};

Points1 = {
{0.289913,0.420538,0.0138931}, // fovea capitis
{0.322038,0.433232,-0.378636}, // lateral anterior condyle
{0.289309,0.426839,-0.372994}, // medial anterior condyle
{0.328859,0.425856,-0.175012}, // anterior mid shaft
{0.306293,0.487243,-0.370319}, // lateral posterior condyle
{0.261891,0.47585,-0.372696}}; // medial posterior condyle
{0.261891,0.47585,-0.372696} // medial posterior condyle
};

Mode = VTK_LANDMARK_AFFINE;
};

Expand All @@ -73,12 +71,11 @@ Main = {
Mode = VTK_LANDMARK_RIGIDBODY;
};

AnyFunTransform3DIdentity MyTransform3 =
{
PreTransforms = {&.MyTransform/*,&.MyTransform2*/};
AnyFunTransform3DIdentity MyTransform3 = {
PreTransforms = {&.MyTransform§/*,&.MyTransform2*/§};
};
AnyFunTransform3DRBF MyRBFTransform =
{

AnyFunTransform3DRBF MyRBFTransform = {
PreTransforms = {&.MyTransform};
PolynomDegree = 1;
RBFDef.Type = RBF_Triharmonic;
Expand All @@ -101,6 +98,7 @@ Main = {
{-0.00084335, 0.32253400, -0.0641596}, // distal trochanteric fossa
{-0.00431680, 0.35912600, 0.0036940} // femoral COR
};

PointNames = {
"Medial_Head_Point",
"Anterior_LateralCondyle_Point",
Expand All @@ -112,7 +110,7 @@ Main = {
"Posterior_Head_Point",
"Anterior_Head_Point",
"Proximal_Head_Point",
"Infeior_Head_Point",
"Infeior_Head_Point",
"Medial_LesserTrochanter_Point",
"Distal_TrochantericFossa_Point",
"Proximal_Posterior_GreaterTrochanter_Point",
Expand All @@ -138,15 +136,15 @@ Main = {
{ 0.3519, 0.4599,-0.0355},
{ 0.3075, 0.4235, 0.0139}
};
BoundingBox =
{

BoundingBox = {
Type = BB_Cartesian;
ScaleXYZ = {2, 2, 2};
DivisionFactorXYZ = 5*{1, 1, 1};
};

BoundingBoxOnOff = On;
};

}; // MyModel

// The study: Operations to be performed on the model
Expand Down
Loading
Loading