본문 바로가기

programming/OpenCascade

OpenCascade - User Guides - 2. Modeling Data - 3. 2D Geometry

2D Geometry

Geom2d package. 객체는 참조로 다뤄짐.

  • description of points, vectors and curves,
  • positioning in the plane using coordinate systems,
  • geometric transformation - translations, rotations, symmetries, scaling transformations and combinations thereof.

 

objects;

  • point,
  • Cartesian point,
  • vector,
  • direction,
  • vector with magnitude,
  • axis,
  • curve,
  • line,
  • conic: circle, ellipse, hyperbola, parabola,
  • rounded curve: trimmed curve, NURBS curve, Bezier curve,
  • offset curve.

object set TColGeom2d package 사용

1D arrays and sequences for curves

 

  • handled by reference
  • handled by value.

Geom2d curves : functions to work with the parametric equation

point of parameter u on a curve and the derivative vectors of order 1, 2.., N at this point.

-> Geom2d curve is naturally oriented.

Geom2d curves는 parameterization과 orientation 이 있으나, gp package는 그렇지 않다.

gp 객체와의 conversion도 제공한다.

 

추상 클래스로부터의 상속 구조;

Geom2d_Ellipse : Geom2d_Conic

Geom2d_BezierCurve : Geom2d_BoundedCurve

Curves, points and vectors : Geom2d_Geometry

 

Geom2d package는 gp package로 아래 작업을 수행;

  • implement elementary algebraic calculus and basic analytic geometry,
  • describe geometric transformations which can be applied to Geom2d objects,
  • describe the elementary data structures of Geom2d objects.

Geom2d package는 데이터 구조만 제공함.

알고리즘은 GCE2d 가 제공.