forked from tpaviot/pythonocc-core
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathAppDef.i
More file actions
3953 lines (3772 loc) · 141 KB
/
Copy pathAppDef.i
File metadata and controls
3953 lines (3772 loc) · 141 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Copyright 2008-2017 Thomas Paviot (tpaviot@gmail.com)
This file is part of pythonOCC.
pythonOCC is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
pythonOCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with pythonOCC. If not, see <http://www.gnu.org/licenses/>.
*/
%define APPDEFDOCSTRING
"This package describes all the classes needed to approximate
points in Bezier curves. It is used in the package
AppParCurves.
The points of the same range for the approximation are
organised in MultiPointConstraints. These MultiPointConstraints
are organized in a MultiLine.
The corresponding result of a MultiLine approximation is
a MultiCurve (set of Bezier curves) which has the same
structure as a MultiLine: The MultiCurve is a set of
MultiPoint.
A point of a MultiLine can have many significations: the approximation curve
can go through this point or not, can have a given tangency, or can
have a given curvature.
Note: a CurvaturePoint is also a PassPoint and a TangencyPoint.
A TangencyPoint is also a PassPoint.
"
%enddef
%module (package="OCC.Core", docstring=APPDEFDOCSTRING) AppDef
#pragma SWIG nowarn=504,325,503
%{
#ifdef WNT
#pragma warning(disable : 4716)
#endif
%}
%include ../common/CommonIncludes.i
%include ../common/ExceptionCatcher.i
%include ../common/FunctionTransformers.i
%include ../common/Operators.i
%include ../common/OccHandle.i
%include AppDef_headers.i
/* typedefs */
/* end typedefs declaration */
/* public enums */
/* end public enums declaration */
%wrap_handle(AppDef_HArray1OfMultiPointConstraint)
%wrap_handle(AppDef_SmoothCriterion)
%wrap_handle(AppDef_LinearCriteria)
%nodefaultctor AppDef_Array1OfMultiPointConstraint;
class AppDef_Array1OfMultiPointConstraint {
public:
%feature("compactdefaultargs") AppDef_Array1OfMultiPointConstraint;
%feature("autodoc", " :param Low:
:type Low: int
:param Up:
:type Up: int
:rtype: None
") AppDef_Array1OfMultiPointConstraint;
AppDef_Array1OfMultiPointConstraint (const Standard_Integer Low,const Standard_Integer Up);
%feature("compactdefaultargs") AppDef_Array1OfMultiPointConstraint;
%feature("autodoc", " :param Item:
:type Item: AppDef_MultiPointConstraint &
:param Low:
:type Low: int
:param Up:
:type Up: int
:rtype: None
") AppDef_Array1OfMultiPointConstraint;
AppDef_Array1OfMultiPointConstraint (const AppDef_MultiPointConstraint & Item,const Standard_Integer Low,const Standard_Integer Up);
%feature("compactdefaultargs") Init;
%feature("autodoc", " :param V:
:type V: AppDef_MultiPointConstraint &
:rtype: None
") Init;
void Init (const AppDef_MultiPointConstraint & V);
%feature("compactdefaultargs") Destroy;
%feature("autodoc", " :rtype: None
") Destroy;
void Destroy ();
%feature("compactdefaultargs") IsAllocated;
%feature("autodoc", " :rtype: bool
") IsAllocated;
Standard_Boolean IsAllocated ();
%feature("compactdefaultargs") Assign;
%feature("autodoc", " :param Other:
:type Other: AppDef_Array1OfMultiPointConstraint &
:rtype: AppDef_Array1OfMultiPointConstraint
") Assign;
const AppDef_Array1OfMultiPointConstraint & Assign (const AppDef_Array1OfMultiPointConstraint & Other);
%feature("compactdefaultargs") operator =;
%feature("autodoc", " :param Other:
:type Other: AppDef_Array1OfMultiPointConstraint &
:rtype: AppDef_Array1OfMultiPointConstraint
") operator =;
const AppDef_Array1OfMultiPointConstraint & operator = (const AppDef_Array1OfMultiPointConstraint & Other);
%feature("compactdefaultargs") Length;
%feature("autodoc", " :rtype: int
") Length;
Standard_Integer Length ();
%feature("compactdefaultargs") Lower;
%feature("autodoc", " :rtype: int
") Lower;
Standard_Integer Lower ();
%feature("compactdefaultargs") Upper;
%feature("autodoc", " :rtype: int
") Upper;
Standard_Integer Upper ();
%feature("compactdefaultargs") SetValue;
%feature("autodoc", " :param Index:
:type Index: int
:param Value:
:type Value: AppDef_MultiPointConstraint &
:rtype: None
") SetValue;
void SetValue (const Standard_Integer Index,const AppDef_MultiPointConstraint & Value);
%feature("compactdefaultargs") Value;
%feature("autodoc", " :param Index:
:type Index: int
:rtype: AppDef_MultiPointConstraint
") Value;
const AppDef_MultiPointConstraint & Value (const Standard_Integer Index);
%feature("compactdefaultargs") ChangeValue;
%feature("autodoc", " :param Index:
:type Index: int
:rtype: AppDef_MultiPointConstraint
") ChangeValue;
AppDef_MultiPointConstraint & ChangeValue (const Standard_Integer Index);
};
%extend AppDef_Array1OfMultiPointConstraint {
%pythoncode {
def __getitem__(self, index):
if index + self.Lower() > self.Upper():
raise IndexError("index out of range")
else:
return self.Value(index + self.Lower())
def __setitem__(self, index, value):
if index + self.Lower() > self.Upper():
raise IndexError("index out of range")
else:
self.SetValue(index + self.Lower(), value)
def __len__(self):
return self.Length()
def __iter__(self):
self.low = self.Lower()
self.up = self.Upper()
self.current = self.Lower() - 1
return self
def next(self):
if self.current >= self.Upper():
raise StopIteration
else:
self.current +=1
return self.Value(self.current)
__next__ = next
}
};
%extend AppDef_Array1OfMultiPointConstraint {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute;
class AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute : public math_BFGS {
public:
%feature("compactdefaultargs") AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute;
%feature("autodoc", " :param F:
:type F: math_MultipleVarFunctionWithGradient &
:param StartingPoint:
:type StartingPoint: math_Vector &
:param Tolerance3d:
:type Tolerance3d: float
:param Tolerance2d:
:type Tolerance2d: float
:param Eps:
:type Eps: float
:param NbIterations: default value is 200
:type NbIterations: int
:rtype: None
") AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute;
AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute (math_MultipleVarFunctionWithGradient & F,const math_Vector & StartingPoint,const Standard_Real Tolerance3d,const Standard_Real Tolerance2d,const Standard_Real Eps,const Standard_Integer NbIterations = 200);
%feature("compactdefaultargs") IsSolutionReached;
%feature("autodoc", " :param F:
:type F: math_MultipleVarFunctionWithGradient &
:rtype: bool
") IsSolutionReached;
virtual Standard_Boolean IsSolutionReached (math_MultipleVarFunctionWithGradient & F);
};
%extend AppDef_BSpGradient_BFGSOfMyBSplGradientOfBSplineCompute {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute;
class AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute : public math_MultipleVarFunctionWithGradient {
public:
%feature("compactdefaultargs") AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute;
%feature("autodoc", " :param SSP:
:type SSP: AppDef_MultiLine &
:param FirstPoint:
:type FirstPoint: int
:param LastPoint:
:type LastPoint: int
:param TheConstraints:
:type TheConstraints: Handle_AppParCurves_HArray1OfConstraintCouple &
:param Parameters:
:type Parameters: math_Vector &
:param Knots:
:type Knots: TColStd_Array1OfReal &
:param Mults:
:type Mults: TColStd_Array1OfInteger &
:param NbPol:
:type NbPol: int
:rtype: None
") AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute;
AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute (const AppDef_MultiLine & SSP,const Standard_Integer FirstPoint,const Standard_Integer LastPoint,const Handle_AppParCurves_HArray1OfConstraintCouple & TheConstraints,const math_Vector & Parameters,const TColStd_Array1OfReal & Knots,const TColStd_Array1OfInteger & Mults,const Standard_Integer NbPol);
%feature("compactdefaultargs") NbVariables;
%feature("autodoc", " :rtype: int
") NbVariables;
Standard_Integer NbVariables ();
%feature("compactdefaultargs") Value;
%feature("autodoc", " :param X:
:type X: math_Vector &
:param F:
:type F: float &
:rtype: bool
") Value;
Standard_Boolean Value (const math_Vector & X,Standard_Real &OutValue);
%feature("compactdefaultargs") Gradient;
%feature("autodoc", " :param X:
:type X: math_Vector &
:param G:
:type G: math_Vector &
:rtype: bool
") Gradient;
Standard_Boolean Gradient (const math_Vector & X,math_Vector & G);
%feature("compactdefaultargs") Values;
%feature("autodoc", " :param X:
:type X: math_Vector &
:param F:
:type F: float &
:param G:
:type G: math_Vector &
:rtype: bool
") Values;
Standard_Boolean Values (const math_Vector & X,Standard_Real &OutValue,math_Vector & G);
%feature("compactdefaultargs") NewParameters;
%feature("autodoc", " :rtype: math_Vector
") NewParameters;
const math_Vector & NewParameters ();
%feature("compactdefaultargs") CurveValue;
%feature("autodoc", " :rtype: AppParCurves_MultiBSpCurve
") CurveValue;
AppParCurves_MultiBSpCurve CurveValue ();
%feature("compactdefaultargs") Error;
%feature("autodoc", " :param IPoint:
:type IPoint: int
:param CurveIndex:
:type CurveIndex: int
:rtype: float
") Error;
Standard_Real Error (const Standard_Integer IPoint,const Standard_Integer CurveIndex);
%feature("compactdefaultargs") MaxError3d;
%feature("autodoc", " :rtype: float
") MaxError3d;
Standard_Real MaxError3d ();
%feature("compactdefaultargs") MaxError2d;
%feature("autodoc", " :rtype: float
") MaxError2d;
Standard_Real MaxError2d ();
%feature("compactdefaultargs") FunctionMatrix;
%feature("autodoc", " :rtype: math_Matrix
") FunctionMatrix;
const math_Matrix & FunctionMatrix ();
%feature("compactdefaultargs") DerivativeFunctionMatrix;
%feature("autodoc", " :rtype: math_Matrix
") DerivativeFunctionMatrix;
const math_Matrix & DerivativeFunctionMatrix ();
%feature("compactdefaultargs") Index;
%feature("autodoc", " :rtype: math_IntegerVector
") Index;
const math_IntegerVector & Index ();
%feature("compactdefaultargs") FirstConstraint;
%feature("autodoc", " :param TheConstraints:
:type TheConstraints: Handle_AppParCurves_HArray1OfConstraintCouple &
:param FirstPoint:
:type FirstPoint: int
:rtype: AppParCurves_Constraint
") FirstConstraint;
AppParCurves_Constraint FirstConstraint (const Handle_AppParCurves_HArray1OfConstraintCouple & TheConstraints,const Standard_Integer FirstPoint);
%feature("compactdefaultargs") LastConstraint;
%feature("autodoc", " :param TheConstraints:
:type TheConstraints: Handle_AppParCurves_HArray1OfConstraintCouple &
:param LastPoint:
:type LastPoint: int
:rtype: AppParCurves_Constraint
") LastConstraint;
AppParCurves_Constraint LastConstraint (const Handle_AppParCurves_HArray1OfConstraintCouple & TheConstraints,const Standard_Integer LastPoint);
%feature("compactdefaultargs") SetFirstLambda;
%feature("autodoc", " :param l1:
:type l1: float
:rtype: None
") SetFirstLambda;
void SetFirstLambda (const Standard_Real l1);
%feature("compactdefaultargs") SetLastLambda;
%feature("autodoc", " :param l2:
:type l2: float
:rtype: None
") SetLastLambda;
void SetLastLambda (const Standard_Real l2);
};
%extend AppDef_BSpParFunctionOfMyBSplGradientOfBSplineCompute {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
class AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute {
public:
%feature("compactdefaultargs") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
%feature("autodoc", " :param SSP:
:type SSP: AppDef_MultiLine &
:param FirstPoint:
:type FirstPoint: int
:param LastPoint:
:type LastPoint: int
:param FirstCons:
:type FirstCons: AppParCurves_Constraint
:param LastCons:
:type LastCons: AppParCurves_Constraint
:param Parameters:
:type Parameters: math_Vector &
:param NbPol:
:type NbPol: int
:rtype: None
") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute (const AppDef_MultiLine & SSP,const Standard_Integer FirstPoint,const Standard_Integer LastPoint,const AppParCurves_Constraint FirstCons,const AppParCurves_Constraint LastCons,const math_Vector & Parameters,const Standard_Integer NbPol);
%feature("compactdefaultargs") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
%feature("autodoc", " :param SSP:
:type SSP: AppDef_MultiLine &
:param FirstPoint:
:type FirstPoint: int
:param LastPoint:
:type LastPoint: int
:param FirstCons:
:type FirstCons: AppParCurves_Constraint
:param LastCons:
:type LastCons: AppParCurves_Constraint
:param NbPol:
:type NbPol: int
:rtype: None
") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute (const AppDef_MultiLine & SSP,const Standard_Integer FirstPoint,const Standard_Integer LastPoint,const AppParCurves_Constraint FirstCons,const AppParCurves_Constraint LastCons,const Standard_Integer NbPol);
%feature("compactdefaultargs") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
%feature("autodoc", " :param SSP:
:type SSP: AppDef_MultiLine &
:param Knots:
:type Knots: TColStd_Array1OfReal &
:param Mults:
:type Mults: TColStd_Array1OfInteger &
:param FirstPoint:
:type FirstPoint: int
:param LastPoint:
:type LastPoint: int
:param FirstCons:
:type FirstCons: AppParCurves_Constraint
:param LastCons:
:type LastCons: AppParCurves_Constraint
:param Parameters:
:type Parameters: math_Vector &
:param NbPol:
:type NbPol: int
:rtype: None
") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute (const AppDef_MultiLine & SSP,const TColStd_Array1OfReal & Knots,const TColStd_Array1OfInteger & Mults,const Standard_Integer FirstPoint,const Standard_Integer LastPoint,const AppParCurves_Constraint FirstCons,const AppParCurves_Constraint LastCons,const math_Vector & Parameters,const Standard_Integer NbPol);
%feature("compactdefaultargs") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
%feature("autodoc", " :param SSP:
:type SSP: AppDef_MultiLine &
:param Knots:
:type Knots: TColStd_Array1OfReal &
:param Mults:
:type Mults: TColStd_Array1OfInteger &
:param FirstPoint:
:type FirstPoint: int
:param LastPoint:
:type LastPoint: int
:param FirstCons:
:type FirstCons: AppParCurves_Constraint
:param LastCons:
:type LastCons: AppParCurves_Constraint
:param NbPol:
:type NbPol: int
:rtype: None
") AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute;
AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute (const AppDef_MultiLine & SSP,const TColStd_Array1OfReal & Knots,const TColStd_Array1OfInteger & Mults,const Standard_Integer FirstPoint,const Standard_Integer LastPoint,const AppParCurves_Constraint FirstCons,const AppParCurves_Constraint LastCons,const Standard_Integer NbPol);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " :param Parameters:
:type Parameters: math_Vector &
:rtype: None
") Perform;
void Perform (const math_Vector & Parameters);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " :param Parameters:
:type Parameters: math_Vector &
:param l1:
:type l1: float
:param l2:
:type l2: float
:rtype: None
") Perform;
void Perform (const math_Vector & Parameters,const Standard_Real l1,const Standard_Real l2);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " :param Parameters:
:type Parameters: math_Vector &
:param V1t:
:type V1t: math_Vector &
:param V2t:
:type V2t: math_Vector &
:param l1:
:type l1: float
:param l2:
:type l2: float
:rtype: None
") Perform;
void Perform (const math_Vector & Parameters,const math_Vector & V1t,const math_Vector & V2t,const Standard_Real l1,const Standard_Real l2);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " :param Parameters:
:type Parameters: math_Vector &
:param V1t:
:type V1t: math_Vector &
:param V2t:
:type V2t: math_Vector &
:param V1c:
:type V1c: math_Vector &
:param V2c:
:type V2c: math_Vector &
:param l1:
:type l1: float
:param l2:
:type l2: float
:rtype: None
") Perform;
void Perform (const math_Vector & Parameters,const math_Vector & V1t,const math_Vector & V2t,const math_Vector & V1c,const math_Vector & V2c,const Standard_Real l1,const Standard_Real l2);
%feature("compactdefaultargs") IsDone;
%feature("autodoc", " :rtype: bool
") IsDone;
Standard_Boolean IsDone ();
%feature("compactdefaultargs") BezierValue;
%feature("autodoc", " :rtype: AppParCurves_MultiCurve
") BezierValue;
AppParCurves_MultiCurve BezierValue ();
%feature("compactdefaultargs") BSplineValue;
%feature("autodoc", " :rtype: AppParCurves_MultiBSpCurve
") BSplineValue;
const AppParCurves_MultiBSpCurve & BSplineValue ();
%feature("compactdefaultargs") FunctionMatrix;
%feature("autodoc", " :rtype: math_Matrix
") FunctionMatrix;
const math_Matrix & FunctionMatrix ();
%feature("compactdefaultargs") DerivativeFunctionMatrix;
%feature("autodoc", " :rtype: math_Matrix
") DerivativeFunctionMatrix;
const math_Matrix & DerivativeFunctionMatrix ();
%feature("compactdefaultargs") ErrorGradient;
%feature("autodoc", " :param Grad:
:type Grad: math_Vector &
:param F:
:type F: float &
:param MaxE3d:
:type MaxE3d: float &
:param MaxE2d:
:type MaxE2d: float &
:rtype: None
") ErrorGradient;
void ErrorGradient (math_Vector & Grad,Standard_Real &OutValue,Standard_Real &OutValue,Standard_Real &OutValue);
%feature("compactdefaultargs") Distance;
%feature("autodoc", " :rtype: math_Matrix
") Distance;
const math_Matrix & Distance ();
%feature("compactdefaultargs") Error;
%feature("autodoc", " :param F:
:type F: float &
:param MaxE3d:
:type MaxE3d: float &
:param MaxE2d:
:type MaxE2d: float &
:rtype: None
") Error;
void Error (Standard_Real &OutValue,Standard_Real &OutValue,Standard_Real &OutValue);
%feature("compactdefaultargs") FirstLambda;
%feature("autodoc", " :rtype: float
") FirstLambda;
Standard_Real FirstLambda ();
%feature("compactdefaultargs") LastLambda;
%feature("autodoc", " :rtype: float
") LastLambda;
Standard_Real LastLambda ();
%feature("compactdefaultargs") Points;
%feature("autodoc", " :rtype: math_Matrix
") Points;
const math_Matrix & Points ();
%feature("compactdefaultargs") Poles;
%feature("autodoc", " :rtype: math_Matrix
") Poles;
const math_Matrix & Poles ();
%feature("compactdefaultargs") KIndex;
%feature("autodoc", " :rtype: math_IntegerVector
") KIndex;
const math_IntegerVector & KIndex ();
};
%extend AppDef_BSpParLeastSquareOfMyBSplGradientOfBSplineCompute {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor AppDef_BSplineCompute;
class AppDef_BSplineCompute {
public:
%feature("compactdefaultargs") AppDef_BSplineCompute;
%feature("autodoc", " :param Line:
:type Line: AppDef_MultiLine &
:param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-3
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-6
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param parametrization: default value is Approx_ChordLength
:type parametrization: Approx_ParametrizationType
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_BSplineCompute;
AppDef_BSplineCompute (const AppDef_MultiLine & Line,const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-3,const Standard_Real Tolerance2d = 1.0e-6,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Approx_ParametrizationType parametrization = Approx_ChordLength,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") AppDef_BSplineCompute;
%feature("autodoc", " :param Line:
:type Line: AppDef_MultiLine &
:param Parameters:
:type Parameters: math_Vector &
:param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_BSplineCompute;
AppDef_BSplineCompute (const AppDef_MultiLine & Line,const math_Vector & Parameters,const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") AppDef_BSplineCompute;
%feature("autodoc", " :param Parameters:
:type Parameters: math_Vector &
:param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_BSplineCompute;
AppDef_BSplineCompute (const math_Vector & Parameters,const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") AppDef_BSplineCompute;
%feature("autodoc", " :param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param parametrization: default value is Approx_ChordLength
:type parametrization: Approx_ParametrizationType
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_BSplineCompute;
AppDef_BSplineCompute (const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Approx_ParametrizationType parametrization = Approx_ChordLength,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") Interpol;
%feature("autodoc", " :param Line:
:type Line: AppDef_MultiLine &
:rtype: None
") Interpol;
void Interpol (const AppDef_MultiLine & Line);
%feature("compactdefaultargs") Init;
%feature("autodoc", " :param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param parametrization: default value is Approx_ChordLength
:type parametrization: Approx_ParametrizationType
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") Init;
void Init (const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Approx_ParametrizationType parametrization = Approx_ChordLength,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " :param Line:
:type Line: AppDef_MultiLine &
:rtype: None
") Perform;
void Perform (const AppDef_MultiLine & Line);
%feature("compactdefaultargs") SetParameters;
%feature("autodoc", " :param ThePar:
:type ThePar: math_Vector &
:rtype: None
") SetParameters;
void SetParameters (const math_Vector & ThePar);
%feature("compactdefaultargs") SetKnots;
%feature("autodoc", " :param Knots:
:type Knots: TColStd_Array1OfReal &
:rtype: None
") SetKnots;
void SetKnots (const TColStd_Array1OfReal & Knots);
%feature("compactdefaultargs") SetKnotsAndMultiplicities;
%feature("autodoc", " :param Knots:
:type Knots: TColStd_Array1OfReal &
:param Mults:
:type Mults: TColStd_Array1OfInteger &
:rtype: None
") SetKnotsAndMultiplicities;
void SetKnotsAndMultiplicities (const TColStd_Array1OfReal & Knots,const TColStd_Array1OfInteger & Mults);
%feature("compactdefaultargs") SetDegrees;
%feature("autodoc", " :param degreemin:
:type degreemin: int
:param degreemax:
:type degreemax: int
:rtype: None
") SetDegrees;
void SetDegrees (const Standard_Integer degreemin,const Standard_Integer degreemax);
%feature("compactdefaultargs") SetTolerances;
%feature("autodoc", " :param Tolerance3d:
:type Tolerance3d: float
:param Tolerance2d:
:type Tolerance2d: float
:rtype: None
") SetTolerances;
void SetTolerances (const Standard_Real Tolerance3d,const Standard_Real Tolerance2d);
%feature("compactdefaultargs") SetContinuity;
%feature("autodoc", " :param C:
:type C: int
:rtype: None
") SetContinuity;
void SetContinuity (const Standard_Integer C);
%feature("compactdefaultargs") SetConstraints;
%feature("autodoc", " :param firstC:
:type firstC: AppParCurves_Constraint
:param lastC:
:type lastC: AppParCurves_Constraint
:rtype: None
") SetConstraints;
void SetConstraints (const AppParCurves_Constraint firstC,const AppParCurves_Constraint lastC);
%feature("compactdefaultargs") IsAllApproximated;
%feature("autodoc", " :rtype: bool
") IsAllApproximated;
Standard_Boolean IsAllApproximated ();
%feature("compactdefaultargs") IsToleranceReached;
%feature("autodoc", " :rtype: bool
") IsToleranceReached;
Standard_Boolean IsToleranceReached ();
%feature("compactdefaultargs") Error;
%feature("autodoc", " :param tol3d:
:type tol3d: float &
:param tol2d:
:type tol2d: float &
:rtype: None
") Error;
void Error (Standard_Real &OutValue,Standard_Real &OutValue);
%feature("compactdefaultargs") Value;
%feature("autodoc", " :rtype: AppParCurves_MultiBSpCurve
") Value;
const AppParCurves_MultiBSpCurve & Value ();
%feature("compactdefaultargs") ChangeValue;
%feature("autodoc", " :rtype: AppParCurves_MultiBSpCurve
") ChangeValue;
AppParCurves_MultiBSpCurve & ChangeValue ();
%feature("compactdefaultargs") Parameters;
%feature("autodoc", " :rtype: TColStd_Array1OfReal
") Parameters;
const TColStd_Array1OfReal & Parameters ();
};
%extend AppDef_BSplineCompute {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor AppDef_Compute;
class AppDef_Compute {
public:
%feature("compactdefaultargs") AppDef_Compute;
%feature("autodoc", " :param Line:
:type Line: AppDef_MultiLine &
:param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-3
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-6
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param parametrization: default value is Approx_ChordLength
:type parametrization: Approx_ParametrizationType
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_Compute;
AppDef_Compute (const AppDef_MultiLine & Line,const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-3,const Standard_Real Tolerance2d = 1.0e-6,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Approx_ParametrizationType parametrization = Approx_ChordLength,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") AppDef_Compute;
%feature("autodoc", " :param Line:
:type Line: AppDef_MultiLine &
:param Parameters:
:type Parameters: math_Vector &
:param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_Compute;
AppDef_Compute (const AppDef_MultiLine & Line,const math_Vector & Parameters,const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") AppDef_Compute;
%feature("autodoc", " :param Parameters:
:type Parameters: math_Vector &
:param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_Compute;
AppDef_Compute (const math_Vector & Parameters,const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") AppDef_Compute;
%feature("autodoc", " :param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param parametrization: default value is Approx_ChordLength
:type parametrization: Approx_ParametrizationType
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") AppDef_Compute;
AppDef_Compute (const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Approx_ParametrizationType parametrization = Approx_ChordLength,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") Init;
%feature("autodoc", " :param degreemin: default value is 4
:type degreemin: int
:param degreemax: default value is 8
:type degreemax: int
:param Tolerance3d: default value is 1.0e-03
:type Tolerance3d: float
:param Tolerance2d: default value is 1.0e-06
:type Tolerance2d: float
:param NbIterations: default value is 5
:type NbIterations: int
:param cutting: default value is Standard_True
:type cutting: bool
:param parametrization: default value is Approx_ChordLength
:type parametrization: Approx_ParametrizationType
:param Squares: default value is Standard_False
:type Squares: bool
:rtype: None
") Init;
void Init (const Standard_Integer degreemin = 4,const Standard_Integer degreemax = 8,const Standard_Real Tolerance3d = 1.0e-03,const Standard_Real Tolerance2d = 1.0e-06,const Standard_Integer NbIterations = 5,const Standard_Boolean cutting = Standard_True,const Approx_ParametrizationType parametrization = Approx_ChordLength,const Standard_Boolean Squares = Standard_False);
%feature("compactdefaultargs") Perform;
%feature("autodoc", " :param Line:
:type Line: AppDef_MultiLine &
:rtype: None
") Perform;
void Perform (const AppDef_MultiLine & Line);
%feature("compactdefaultargs") SetDegrees;
%feature("autodoc", " :param degreemin:
:type degreemin: int
:param degreemax:
:type degreemax: int
:rtype: None
") SetDegrees;
void SetDegrees (const Standard_Integer degreemin,const Standard_Integer degreemax);
%feature("compactdefaultargs") SetTolerances;
%feature("autodoc", " :param Tolerance3d:
:type Tolerance3d: float
:param Tolerance2d:
:type Tolerance2d: float
:rtype: None
") SetTolerances;
void SetTolerances (const Standard_Real Tolerance3d,const Standard_Real Tolerance2d);
%feature("compactdefaultargs") SetConstraints;
%feature("autodoc", " :param firstC:
:type firstC: AppParCurves_Constraint
:param lastC:
:type lastC: AppParCurves_Constraint
:rtype: None
") SetConstraints;
void SetConstraints (const AppParCurves_Constraint firstC,const AppParCurves_Constraint lastC);
%feature("compactdefaultargs") IsAllApproximated;
%feature("autodoc", " :rtype: bool
") IsAllApproximated;
Standard_Boolean IsAllApproximated ();
%feature("compactdefaultargs") IsToleranceReached;
%feature("autodoc", " :rtype: bool
") IsToleranceReached;
Standard_Boolean IsToleranceReached ();
%feature("compactdefaultargs") Error;
%feature("autodoc", " :param Index:
:type Index: int
:param tol3d:
:type tol3d: float &
:param tol2d:
:type tol2d: float &
:rtype: None
") Error;
void Error (const Standard_Integer Index,Standard_Real &OutValue,Standard_Real &OutValue);
%feature("compactdefaultargs") NbMultiCurves;
%feature("autodoc", " :rtype: int
") NbMultiCurves;
Standard_Integer NbMultiCurves ();
%feature("compactdefaultargs") Value;
%feature("autodoc", " :param Index: default value is 1
:type Index: int
:rtype: AppParCurves_MultiCurve
") Value;
const AppParCurves_MultiCurve & Value (const Standard_Integer Index = 1);
%feature("compactdefaultargs") ChangeValue;
%feature("autodoc", " :param Index: default value is 1
:type Index: int
:rtype: AppParCurves_MultiCurve
") ChangeValue;
AppParCurves_MultiCurve & ChangeValue (const Standard_Integer Index = 1);
%feature("compactdefaultargs") SplineValue;
%feature("autodoc", " :rtype: AppParCurves_MultiBSpCurve
") SplineValue;
const AppParCurves_MultiBSpCurve & SplineValue ();
%feature("compactdefaultargs") Parametrization;
%feature("autodoc", " :param partype:
:type partype: Approx_ParametrizationType &
:rtype: None
") Parametrization;
void Parametrization (Approx_ParametrizationType & partype);
%feature("compactdefaultargs") Parameters;
%feature("autodoc", " :param Index: default value is 1
:type Index: int
:rtype: TColStd_Array1OfReal
") Parameters;
const TColStd_Array1OfReal & Parameters (const Standard_Integer Index = 1);
};
%extend AppDef_Compute {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor AppDef_Gradient_BFGSOfMyGradientOfCompute;
class AppDef_Gradient_BFGSOfMyGradientOfCompute : public math_BFGS {
public:
%feature("compactdefaultargs") AppDef_Gradient_BFGSOfMyGradientOfCompute;
%feature("autodoc", " :param F:
:type F: math_MultipleVarFunctionWithGradient &
:param StartingPoint:
:type StartingPoint: math_Vector &
:param Tolerance3d:
:type Tolerance3d: float
:param Tolerance2d:
:type Tolerance2d: float
:param Eps:
:type Eps: float
:param NbIterations: default value is 200
:type NbIterations: int
:rtype: None
") AppDef_Gradient_BFGSOfMyGradientOfCompute;
AppDef_Gradient_BFGSOfMyGradientOfCompute (math_MultipleVarFunctionWithGradient & F,const math_Vector & StartingPoint,const Standard_Real Tolerance3d,const Standard_Real Tolerance2d,const Standard_Real Eps,const Standard_Integer NbIterations = 200);
%feature("compactdefaultargs") IsSolutionReached;
%feature("autodoc", " :param F:
:type F: math_MultipleVarFunctionWithGradient &
:rtype: bool
") IsSolutionReached;
virtual Standard_Boolean IsSolutionReached (math_MultipleVarFunctionWithGradient & F);
};
%extend AppDef_Gradient_BFGSOfMyGradientOfCompute {
%pythoncode {
__repr__ = _dumps_object
}
};
%nodefaultctor AppDef_Gradient_BFGSOfMyGradientbisOfBSplineCompute;
class AppDef_Gradient_BFGSOfMyGradientbisOfBSplineCompute : public math_BFGS {
public:
%feature("compactdefaultargs") AppDef_Gradient_BFGSOfMyGradientbisOfBSplineCompute;
%feature("autodoc", " :param F:
:type F: math_MultipleVarFunctionWithGradient &
:param StartingPoint:
:type StartingPoint: math_Vector &
:param Tolerance3d:
:type Tolerance3d: float
:param Tolerance2d:
:type Tolerance2d: float
:param Eps:
:type Eps: float
:param NbIterations: default value is 200
:type NbIterations: int
:rtype: None
") AppDef_Gradient_BFGSOfMyGradientbisOfBSplineCompute;
AppDef_Gradient_BFGSOfMyGradientbisOfBSplineCompute (math_MultipleVarFunctionWithGradient & F,const math_Vector & StartingPoint,const Standard_Real Tolerance3d,const Standard_Real Tolerance2d,const Standard_Real Eps,const Standard_Integer NbIterations = 200);