View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0032761 | Community | OCCT:Modeling Data | public | 2022-01-06 14:33 | 2022-01-07 10:16 |
| Reporter | lad | Assigned To | lad | ||
| Priority | normal | Severity | minor | ||
| Status | feedback | Resolution | open | ||
| Product Version | 7.5.0 | ||||
| Summary | 0032761: The Api GCE2d_MakeArcOfCircle has a prolem? | ||||
| Description | When 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. | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
|
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 |
|
|
Shoule It be 270 to 360 CW(Timing needle )? |
|
|
Yes, you are right. |
| 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 |
|
Note Added: 0106261 | |
| 2022-01-06 21:57 |
|
Assigned To | msv => lad |
| 2022-01-06 21:57 |
|
Status | new => feedback |
| 2022-01-06 22:00 |
|
Relationship added | has duplicate 0032762 |
| 2022-01-07 03:59 | lad | Note Added: 0106264 | |
| 2022-01-07 10:16 |
|
Note Added: 0106266 |