View Issue Details

IDProjectCategoryView StatusLast Update
0032761CommunityOCCT:Modeling Datapublic2022-01-07 10:16
Reporterlad Assigned Tolad  
PrioritynormalSeverityminor 
Status feedbackResolutionopen 
Product Version7.5.0 
Summary0032761: The Api GCE2d_MakeArcOfCircle has a prolem?
DescriptionWhen I Use this construction Api CCE2d_MakeArcOfCircle(gp_Pnt2d(0,100), gp_Vec2d(1,0), gp_Pnt2d(100,0)). It give me a wrong result.
TagsNo tags attached.
Test case number

Relationships

has duplicate 0032762 closedbugmaster The Api GCE2d_MakeArcOfCircle has a prolem? 

Activities

msv

2022-01-06 21:56

developer   ~0106261

What wrong result gives it to you?
The following program:
#pragma comment(lib,"TKernel")
#pragma comment(lib,"TKG2d")
#pragma comment(lib,"TKGeomBase")

#include <iostream>
#include <GCE2d_MakeArcOfCircle.hxx>
#include <gp_Pnt2d.hxx>
#include <gp_Vec2d.hxx>
#include <Geom2d_Circle.hxx>

int main(int narg, char** argv)
{
  GCE2d_MakeArcOfCircle aGC (gp_Pnt2d(0,100), gp_Vec2d(1,0), gp_Pnt2d(100,0));
  const Handle(Geom2d_TrimmedCurve)& anArc = aGC.Value();
  Handle(Geom2d_Circle) aCirc = Handle(Geom2d_Circle)::DownCast (anArc->BasisCurve());
  const gp_Pnt2d& aLoc = aCirc->Location();
  std::cout << "location " << aLoc.X() << " " << aLoc.Y() << " radius "
    << aCirc->Radius() << std::endl;
  std::cout << "bounds " << anArc->FirstParameter()*180/M_PI
    << " " << anArc->LastParameter()*180/M_PI << std::endl;
  return 0;
}

gives the following:
location 0 -0 radius 100
bounds 0 270

lad

2022-01-07 03:59

reporter   ~0106264

Shoule It be 270 to 360 CW(Timing needle )?

msv

2022-01-07 10:16

developer   ~0106266

Yes, you are right.

Issue History

Date Modified Username Field Change
2022-01-06 14:33 lad New Issue
2022-01-06 14:33 lad Assigned To => msv
2022-01-06 21:56 msv Note Added: 0106261
2022-01-06 21:57 msv Assigned To msv => lad
2022-01-06 21:57 msv Status new => feedback
2022-01-06 22:00 msv Relationship added has duplicate 0032762
2022-01-07 03:59 lad Note Added: 0106264
2022-01-07 10:16 msv Note Added: 0106266