Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(objects): CNX-8709 suppress warnings in obsolete classes, methods, and fields #3143

Merged
merged 15 commits into from
Jan 17, 2024

Conversation

clairekuang
Copy link
Member

@clairekuang clairekuang commented Jan 16, 2024

  • All existing obsolete tags now throw an error
  • Converters using obsolete classes, fields, and methods are updated
  • Warnings in obsolete tagged objects are now suppressed
  • Network class and related classes are now marked as Obsolete (instead of just the constructor).
  • Includes some other minor warning resolutions

Objects/Objects/Other/Instance.cs Outdated Show resolved Hide resolved
@@ -32,6 +32,8 @@ int endIndex
IsoStatus = isoStatus;
TrimType = trimType;
IsReversed = reversed;
StartIndex = startIndex;
Copy link
Member

Choose a reason for hiding this comment

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

Why were we not doing this before?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure, @AlanRynne was there a reason you can remember for not setting the StartIndex and EndIndex props even though they are arguments passed to the constructor?

Copy link
Member

Choose a reason for hiding this comment

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

I find no reason why we would ever do this, I'll dig in a bit more after standup.

Copy link
Member

Choose a reason for hiding this comment

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

I double checked the usages of this constructor and it is definitely a bug/oversight.

This does not affect conversions for the most part, as the start/end vertex index is rarely used... but I'm sure this would fix some odd Brep edge-cases we may have been unaware of.

It will also ensure breps always have the same id (as missing to set start/end vertex would in fact result in a different id for that brep)

@AlanRynne AlanRynne changed the title chore(objects): CNX 8709 suppress warnings in obsolete classes, methods, and fields chore(objects): CNX-8709 suppress warnings in obsolete classes, methods, and fields Jan 16, 2024
Copy link
Member

@AlanRynne AlanRynne left a comment

Choose a reason for hiding this comment

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

This looks good. I added my 2 cents on the BrepTrim discussion, but it's safe to merge!

@@ -32,6 +32,8 @@ int endIndex
IsoStatus = isoStatus;
TrimType = trimType;
IsReversed = reversed;
StartIndex = startIndex;
Copy link
Member

Choose a reason for hiding this comment

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

I double checked the usages of this constructor and it is definitely a bug/oversight.

This does not affect conversions for the most part, as the start/end vertex index is rarely used... but I'm sure this would fix some odd Brep edge-cases we may have been unaware of.

It will also ensure breps always have the same id (as missing to set start/end vertex would in fact result in a different id for that brep)

@AlanRynne AlanRynne merged commit c47f870 into dev Jan 17, 2024
32 checks passed
@AlanRynne AlanRynne deleted the CNX-8709-Objects-Obsolete-remove-or-supress branch January 17, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants