blob: f4a619cc29c896062a1585f9ff42c6b47475f9eb (
plain)
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
|
// File: NLPlate_HPG0Constraint.cxx
// Created: Fri Apr 17 17:52:28 1998
// Author: Andre LIEUTIER
// <alr@sgi63>
#include <NLPlate_HPG0Constraint.ixx>
NLPlate_HPG0Constraint::NLPlate_HPG0Constraint(const gp_XY& UV,const gp_XYZ& Value)
:myXYZTarget(Value)
{
SetUV(UV);
SetActiveOrder(0);
UVIsFree = Standard_False;
IncrementalLoadingAllowed = Standard_False;
}
void NLPlate_HPG0Constraint::SetUVFreeSliding(const Standard_Boolean UVFree)
{
UVIsFree = UVFree;
}
void NLPlate_HPG0Constraint::SetIncrementalLoadAllowed(const Standard_Boolean ILA)
{
IncrementalLoadingAllowed = ILA;
}
Standard_Boolean NLPlate_HPG0Constraint::UVFreeSliding() const
{
return UVIsFree;
}
Standard_Boolean NLPlate_HPG0Constraint::IncrementalLoadAllowed() const
{
return IncrementalLoadingAllowed;
}
Standard_Integer NLPlate_HPG0Constraint::ActiveOrder() const
{
if (myActiveOrder<0) return myActiveOrder;
else return 0;
}
Standard_Boolean NLPlate_HPG0Constraint::IsG0() const
{
return Standard_True;
}
const gp_XYZ& NLPlate_HPG0Constraint::G0Target() const
{
return myXYZTarget;
}
|