LocalAnalysis
OCCT package LocalAnalysis: LocalAnalysis, LocalAnalysis_CurveContinuity, LocalAnalysis_StatusErrorType, LocalAnalysis_SurfaceContinuity.
LocalAnalysis
This package gives tools to check the local continuity between two points situated on two curves or two surfaces.
Constructors(1)
LocalAnalysis_CurveContinuity
This class gives tools to check local continuity C0 C1 C2 G1 G2 between two points situated on two curves.
Constructors(1)
- constructor(Curv1: Geom_Curve, u1: number, Curv2: Geom_Curve, u2: number, Order: GeomAbs_Shape, EpsNul?: number, EpsC0?: number, EpsC1?: number, EpsC2?: number, EpsG1?: number, EpsG2?: number, Percent?: number, Maxlen?: number): LocalAnalysis_CurveContinuity
-u1 is the parameter of the point on Curv1 -u2 is the parameter of the point on Curv2 -Order is the required continuity: GeomAbs_C0 GeomAbs_C1 GeomAbs_C2 GeomAbs_G1 GeomAbs_G2
-EpsNul is used to detect a vector with null magnitude (in mm)
-EpsC0 is used for C0 continuity to confuse two points (in mm)
-EpsC1 is an angular tolerance in radians used for C1 continuity to compare the angle between the first derivatives
-EpsC2 is an angular tolerance in radians used for C2 continuity to compare the angle between the second derivatives
-EpsG1 is an angular tolerance in radians used for G1 continuity to compare the angle between the tangents
-EpsG2 is an angular tolerance in radians used for G2 continuity to compare the angle between the normals- percent: percentage of curvature variation (unitless) used for G2 continuity
- Maxlen is the maximum length of Curv1 or Curv2 in meters used to detect nul curvature (in mm)
the constructor computes the quantities which are necessary to check the continuity in the following cases:
case C0 - the distance between P1 and P2 with P1=Curv1 (u1) and P2=Curv2(u2)
case C1 - the angle between the first derivatives dCurv1(u1) dCurv2(u2) ------- and -------- du du
- the ratio between the magnitudes of the first derivatives
the angle value is between 0 and PI/2
case C2 - the angle between the second derivatives 2 2 d Curv1(u1) d Curv2(u2) 2 2 du du
the angle value is between 0 and PI/2 - the ratio between the magnitudes of the second derivatives
case G1
the angle between the tangents at each point
the angle value is between 0 and PI/2
case G2
-the angle between the normals at each point
the angle value is between 0 and PI/2 - the relative variation of curvature:
|curvat1-curvat2|
1/2 (curvat1*curvat2)
where curvat1 is the curvature at the first point and curvat2 the curvature at the second point
Parameters (13)Curv1u1Curv2u2OrderEpsNulEpsC0EpsC1EpsC2EpsG1EpsG2PercentMaxlen
Instance methods(16)
LocalAnalysis_StatusErrorType
Properties(5)
LocalAnalysis_SurfaceContinuity
This class gives tools to check local continuity C0 C1 C2 G1 G2 between two points situated on two surfaces.
Constructors(3)
- constructor(EpsNul?: number, EpsC0?: number, EpsC1?: number, EpsC2?: number, EpsG1?: number, Percent?: number, Maxlen?: number): LocalAnalysis_SurfaceContinuity
This constructor is used when we want to compute many analysis. After we use the method ComputeAnalysis.
Parameters (7)EpsNulEpsC0EpsC1EpsC2EpsG1PercentMaxlen
- constructor(curv1: Geom2d_Curve, curv2: Geom2d_Curve, U: number, Surf1: Geom_Surface, Surf2: Geom_Surface, Order: GeomAbs_Shape, EpsNul?: number, EpsC0?: number, EpsC1?: number, EpsC2?: number, EpsG1?: number, Percent?: number, Maxlen?: number): LocalAnalysis_SurfaceContinuityParameters (13)
curv1curv2USurf1Surf2OrderEpsNulEpsC0EpsC1EpsC2EpsG1PercentMaxlen
- constructor(Surf1: Geom_Surface, u1: number, v1: number, Surf2: Geom_Surface, u2: number, v2: number, Order: GeomAbs_Shape, EpsNul?: number, EpsC0?: number, EpsC1?: number, EpsC2?: number, EpsG1?: number, Percent?: number, Maxlen?: number): LocalAnalysis_SurfaceContinuity
-u1,v1 are the parameters of the point on Surf1 -u2,v2 are the parameters of the point on Surf2 -Order is the required continuity: GeomAbs_C0 GeomAbs_C1 GeomAbs_C2 GeomAbs_G1 GeomAbs_G2
-EpsNul is used to detect a a vector with nul magnitude
-EpsC0 is used for C0 continuity to confuse two points (in mm)
-EpsC1 is an angular tolerance in radians used for C1 continuity to compare the angle between the first derivatives
-EpsC2 is an angular tolerance in radians used for C2 continuity to compare the angle between the second derivatives
-EpsG1 is an angular tolerance in radians used for G1 continuity to compare the angle between the normals
-Percent: percentage of curvature variation (unitless) used for G2 continuity- Maxlen is the maximum length of Surf1 or Surf2 in meters used to detect null curvature (in mm)
the constructor computes the quantities which are necessary to check the continuity in the following cases:
case C0 - the distance between P1 and P2 with P1=Surf (u1,v1) and P2=Surfv2(u2,v2)
case C1 - the angle between the first derivatives in u :
dSurf1(u1,v1) dSurf2(u2,v2) ---------- and -------- du du
the angle value is between 0 and PI/2 - the angle between the first derivatives in v :
dSurf1(u1,v1) dSurf2(u2,v2) ------- and -------- dv dv - the ratio between the magnitudes of the first derivatives in u
- the ratio between the magnitudes of the first derivatives in v
the angle value is between 0 and pi/2
case C2 - the angle between the second derivatives in u 2 2 d Surf1(u1,v1) d Surf2(u2,v2) 2 2 d u d u
- the ratio between the magnitudes of the second derivatives in u
- the ratio between the magnitudes of the second derivatives in v
the angle value is between 0 and PI/2
case G1
-the angle between the normals at each point the angle value is between 0 and PI/2
case G2 - the maximum normal curvature gap between the two points
Parameters (14)Surf1u1v1Surf2u2v2OrderEpsNulEpsC0EpsC1EpsC2EpsG1PercentMaxlen
- Maxlen is the maximum length of Surf1 or Surf2 in meters used to detect null curvature (in mm)
Instance methods(20)
- ComputeAnalysis(Surf1: GeomLProp_SLProps, Surf2: GeomLProp_SLProps, Order: GeomAbs_Shape): voidParameters (3)
Surf1Surf2Order
- IsDone(): boolean
- C0Value(): number
- C1UAngle(): number
- C1URatio(): number
- C1VAngle(): number
- C1VRatio(): number
- C2UAngle(): number
- C2URatio(): number
- C2VAngle(): number
- C2VRatio(): number
- G1Angle(): number
- G2CurvatureGap(): number
- IsC0(): boolean
- IsC1(): boolean
- IsC2(): boolean
- IsG1(): boolean
- IsG2(): boolean