Skip to content

Commit

Permalink
fallback of merger extended
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy84 committed Aug 16, 2023
1 parent 5444ad4 commit ad078e6
Show file tree
Hide file tree
Showing 14 changed files with 260 additions and 94 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2012-2022 Ronald Römer
# Copyright 2012-2023 Ronald Römer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ from vtkbool.vtkBool import vtkPolyDataBooleanFilter

## Copyright

2012-2022 Ronald Römer
2012-2023 Ronald Römer

## License

Expand Down
4 changes: 2 additions & 2 deletions Utilities.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2022 Ronald Römer
Copyright 2012-2023 Ronald Römer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -97,7 +97,7 @@ void WriteVTK (const char *name, vtkPolyData *pd) {
w->Delete();
}

double GetAngle (double *vA, double *vB, double *n) {
double GetAngle (const double *vA, const double *vB, const double *n) {
// http://math.stackexchange.com/questions/878785/how-to-find-an-angle-in-range0-360-between-2-vectors

double _vA[3];
Expand Down
12 changes: 10 additions & 2 deletions Utilities.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2022 Ronald Römer
Copyright 2012-2023 Ronald Römer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -33,7 +33,7 @@ limitations under the License.

#define NOTSET -1

double GetAngle (double *vA, double *vB, double *n);
double GetAngle (const double *vA, const double *vB, const double *n);

/* VTK */
void ComputeNormal (vtkPoints *pts, double *n, vtkIdType num, const vtkIdType *poly);
Expand Down Expand Up @@ -68,6 +68,14 @@ class Point3d {
<< ", id=" << p.id << ")";
return out;
}

static double GetVec (const Point3d &a, const Point3d &b, double *v) {
v[0] = b.x-a.x;
v[1] = b.y-a.y;
v[2] = b.z-a.z;

return vtkMath::Normalize(v);
}
};

typedef std::vector<vtkIdType> IdsType;
Expand Down
2 changes: 1 addition & 1 deletion testing/_test/_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# *-* coding: UTF-8 *-*

# Copyright 2012-2022 Ronald Römer
# Copyright 2012-2023 Ronald Römer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion testing/generate_frieze.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# *-* coding: UTF-8 *-*

# Copyright 2012-2022 Ronald Römer
# Copyright 2012-2023 Ronald Römer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion testing/milling/milling.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# *-* coding: UTF-8 *-*

# Copyright 2012-2022 Ronald Römer
# Copyright 2012-2023 Ronald Römer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion testing/test_filter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# *-* coding: UTF-8 *-*

# Copyright 2012-2022 Ronald Römer
# Copyright 2012-2023 Ronald Römer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion testing/test_merger.cxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2012-2022 Ronald Römer
Copyright 2012-2023 Ronald Römer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion testing/test_python.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# *-* coding: UTF-8 *-*

# Copyright 2012-2022 Ronald Römer
# Copyright 2012-2023 Ronald Römer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit ad078e6

Please sign in to comment.