Skip to content

Commit

Permalink
Rename enum value 'None' to 'BeamLatticeBallModeNone' to not use a py…
Browse files Browse the repository at this point in the history
…thon keyword
  • Loading branch information
3dJan committed Oct 22, 2024
1 parent 84a318a commit 3073bf1
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 51 deletions.
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/C/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ typedef enum eLib3MFBeamLatticeClipMode {
} eLib3MFBeamLatticeClipMode;

typedef enum eLib3MFBeamLatticeBallMode {
eBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeMixed = 1,
eBeamLatticeBallModeAll = 2
} eLib3MFBeamLatticeBallMode;
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/CDynamic/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ typedef enum eLib3MFBeamLatticeClipMode {
} eLib3MFBeamLatticeClipMode;

typedef enum eLib3MFBeamLatticeBallMode {
eBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeMixed = 1,
eBeamLatticeBallModeAll = 2
} eLib3MFBeamLatticeBallMode;
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/CSharp/Lib3MF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public enum eBeamLatticeClipMode {
};

public enum eBeamLatticeBallMode {
None = 0,
BeamLatticeBallModeNone = 0,
Mixed = 1,
All = 2
};
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/Cpp/lib3mf_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ namespace Lib3MF {
};

enum class eBeamLatticeBallMode : Lib3MF_int32 {
None = 0,
BeamLatticeBallModeNone = 0,
Mixed = 1,
All = 2
};
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/CppDynamic/lib3mf_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ namespace Lib3MF {
};

enum class eBeamLatticeBallMode : Lib3MF_int32 {
None = 0,
BeamLatticeBallModeNone = 0,
Mixed = 1,
All = 2
};
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/Go/lib3mf.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Autogenerated/Bindings/Go/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ typedef enum eLib3MFBeamLatticeClipMode {
} eLib3MFBeamLatticeClipMode;

typedef enum eLib3MFBeamLatticeBallMode {
eBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeMixed = 1,
eBeamLatticeBallModeAll = 2
} eLib3MFBeamLatticeBallMode;
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/NodeJS/lib3mf_nodewrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23617,7 +23617,7 @@ void CLib3MFWrapper::New(const FunctionCallbackInfo<Value>& args)
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eBeamLatticeClipMode_NoClipMode"), Integer::New(isolate, 0));
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eBeamLatticeClipMode_Inside"), Integer::New(isolate, 1));
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eBeamLatticeClipMode_Outside"), Integer::New(isolate, 2));
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eBeamLatticeBallMode_None"), Integer::New(isolate, 0));
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eBeamLatticeBallMode_BeamLatticeBallModeNone"), Integer::New(isolate, 0));
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eBeamLatticeBallMode_Mixed"), Integer::New(isolate, 1));
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eBeamLatticeBallMode_All"), Integer::New(isolate, 2));
newObject->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "eProgressIdentifier_QUERYCANCELED"), Integer::New(isolate, 0));
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/NodeJS/lib3mf_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ typedef enum eLib3MFBeamLatticeClipMode {
} eLib3MFBeamLatticeClipMode;

typedef enum eLib3MFBeamLatticeBallMode {
eBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeBeamLatticeBallModeNone = 0,
eBeamLatticeBallModeMixed = 1,
eBeamLatticeBallModeAll = 2
} eLib3MFBeamLatticeBallMode;
Expand Down
6 changes: 3 additions & 3 deletions Autogenerated/Bindings/Pascal/Unit_Lib3MF.pas
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ interface
);

TLib3MFBeamLatticeBallMode = (
eBeamLatticeBallModeNone,
eBeamLatticeBallModeBeamLatticeBallModeNone,
eBeamLatticeBallModeMixed,
eBeamLatticeBallModeAll
);
Expand Down Expand Up @@ -10622,7 +10622,7 @@ implementation
function convertBeamLatticeBallModeToConst(const AValue: TLib3MFBeamLatticeBallMode): Integer;
begin
case AValue of
eBeamLatticeBallModeNone: Result := 0;
eBeamLatticeBallModeBeamLatticeBallModeNone: Result := 0;
eBeamLatticeBallModeMixed: Result := 1;
eBeamLatticeBallModeAll: Result := 2;
else
Expand All @@ -10633,7 +10633,7 @@ implementation
function convertConstToBeamLatticeBallMode(const AValue: Integer): TLib3MFBeamLatticeBallMode;
begin
case AValue of
0: Result := eBeamLatticeBallModeNone;
0: Result := eBeamLatticeBallModeBeamLatticeBallModeNone;
1: Result := eBeamLatticeBallModeMixed;
2: Result := eBeamLatticeBallModeAll;
else
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Bindings/Python/Lib3MF.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ class BeamLatticeClipMode(CTypesEnum):
'''Definition of BeamLatticeBallMode
'''
class BeamLatticeBallMode(CTypesEnum):
None = 0
BeamLatticeBallModeNone = 0
Mixed = 1
All = 2
'''Definition of ProgressIdentifier
Expand Down
2 changes: 1 addition & 1 deletion Autogenerated/Source/lib3mf_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ namespace Lib3MF {
};

enum class eBeamLatticeBallMode : Lib3MF_int32 {
None = 0,
BeamLatticeBallModeNone = 0,
Mixed = 1,
All = 2
};
Expand Down
2 changes: 1 addition & 1 deletion AutomaticComponentToolkit/lib3mf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
</enum>

<enum name="BeamLatticeBallMode">
<option name="None" value="0" />
<option name="BeamLatticeBallModeNone" value="0" />
<option name="Mixed" value="1" />
<option name="All" value="2" />
</enum>
Expand Down
17 changes: 0 additions & 17 deletions AutomaticComponentToolkit/patch_python.bat

This file was deleted.

17 changes: 0 additions & 17 deletions AutomaticComponentToolkit/patch_python.sh

This file was deleted.

2 changes: 1 addition & 1 deletion Source/API/lib3mf_beamlattice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void CBeamLattice::GetBallOptions (eLib3MFBeamLatticeBallMode & eBallMode, Lib3M

void CBeamLattice::SetBallOptions (const eLib3MFBeamLatticeBallMode eBallMode, const Lib3MF_double dBallRadius)
{
if (eBallMode == eLib3MFBeamLatticeBallMode::None || dBallRadius > 0.0) {
if (eBallMode == eLib3MFBeamLatticeBallMode::BeamLatticeBallModeNone || dBallRadius > 0.0) {
m_mesh.setBeamLatticeBallMode((NMR::eModelBeamLatticeBallMode)eBallMode);
m_mesh.setDefaultBallRadius(dBallRadius);
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/CPP_Bindings/Source/BeamLattice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ namespace Lib3MF

TEST_F(BeamLattice, BallMode)
{
beamLattice->SetBallOptions(eBeamLatticeBallMode::None, 1.2);
beamLattice->SetBallOptions(eBeamLatticeBallMode::BeamLatticeBallModeNone, 1.2);

sBeam beam;
beam.m_Radii[0] = 1.0;
Expand Down

0 comments on commit 3073bf1

Please sign in to comment.