Skip to content

chore: remove AnyDrawRefFrame classes - #179

Open
bkje14 wants to merge 4 commits into
ammr4-betafrom
bke-clean-072026
Open

chore: remove AnyDrawRefFrame classes#179
bkje14 wants to merge 4 commits into
ammr4-betafrom
bke-clean-072026

Conversation

@bkje14

@bkje14 bkje14 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

With many of the classes supporting default drawing objects this PR is about removing old draw objects.

  1. Removing of outcommented AnyDrawRefFrame
  2. conversion of enabled AnyDrawRefFrame -> viewRefFrame

@github-actions github-actions Bot added the chore label Jul 8, 2026
@bkje14
bkje14 requested a review from mdabt July 8, 2026 11:50
@bkje14
bkje14 enabled auto-merge (squash) July 9, 2026 05:13

@mdabt mdabt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some general comments

  • Are all the shown RefFrames really needed? Maybe more a question for ST and co.
  • Is the in-one-line setting ok? I like it for this draw specs, but this PR suggests a few places with multiline (which I propose to in one line too)
  • ScaleXYZ (typically set to 0.1) - Is it needed with current view RefFrame's default. If it is needed maybe it ought to be a shared DrawSetting

sRel = .Scale(.DistalCyl[1])*.Mirror;
viewRefFrame = {
Visible = On;
ScaleXYZ = {1,1,1}*0.1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this is really needed with viewRefFrame's defaults.

I also wonder why we need to see PalmarCylNode1 in SoftTissue. @st?

Comment thread Body/AAUHuman/Arm/Seg.any
Comment on lines 95 to +96
AnyRefNode acj = { sRel = .Scale(.Data.acj_pos*.Mirror); #include "../DrawSettings/JointAxesDistal.any" };
AnyRefNode scj = { sRel = .Scale(.Data.scj_pos*.Mirror); #include "../DrawSettings/JointAxesProximal.any" };
AnyRefNode scj = { sRel = .Scale(.Data.scj_pos*.Mirror);};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I get why DrawSettings are removed!
And only in some places, but not the first

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JointAxesProximal.any was a empty file. That is why only that one is removed.

viewRefFrame = {
Visible = On;
RGB = {0,1,0};
ScaleXYZ = 0.2*{0.05,0.05,0.05};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these need to be shown at all? @st

// };
AnyRefNode FDB3_Via2 = {
sRel = .Scale({-0.01205038, -0.0572402, ....Sign*0.02281839});
AnyDrawNode drw = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many AnyDrawNode objects. I guess they do not have a viewNode-option in AnyBody - but they should

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left them for now, to only focus on AnyDrawRefFrame.
But I saw AnyDrawNode, AnyDrawSurf and maybe some others that could came the same treatment.


//AnyDrawSeg Draw = {};
//AnyDrawRefFrame Drw = {ScaleXYZ={1,1,1}*0.1;};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More lines to delete, I guess. AnyDrawSeg and AnyDrawNodes

Comment on lines -102 to +103
PelvisNode={AnyDrawRefFrame drw={RGB={1,0,0};Visible = Off;}; };
ThighNode={AnyDrawRefFrame drw={RGB={0,1,0};Visible = Off;}; };
PelvisNode = {viewRefFrame = { RGB = {1,0,0}; Visible = Off;}; };
ThighNode = {viewRefFrame = { RGB = {0,1,0}; Visible = Off;}; };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Visible = Off needed?

AnyRefNode &ref2 = ....layer_above.LayerConstraintNodes.Nodes_Below_Layer._node0001;
Ref=0;
#ifdef _ABDOMINAL_VISUALIZE_FOR_DEBUG
AnyDrawPLine drw ={Thickness=0.0025;};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these (many in this file) missing a Visible = On?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants