View Issue Details

IDProjectCategoryView StatusLast Update
0002974CommunityOCCT:Modeling Datapublic2006-06-29 09:15
Reporterbugmaster Assigned Toofv 
PrioritynormalSeveritytrivial 
Status closedResolutionunable to reproduce 
OSAll 
Fixed in Version5.1.0 
Summary0002974: Bug in parametric definition of conical surface
DescriptionBug from OpenCASCADE community
Bug has been registered by Shangjian DU

http://www.opencascade.org/forumorg/bug.php?bug_id=134

In OCC, defined the conical surface as

P(u, v) = O + (R + v*tan(Ang)) * (cos(u)*XDir + sin(u)*YDir) + v*Zdir

But, after I utilized the definition, I think the definition should be changed
as follows:
P(u, v) = O + (R + v*tan(Ang)) * (cos(u)*XDir + sin(u)*YDir) + (v/cos(Ang))*Zdir


You can try to implemented the followed code.

/////////////////////////////////////////
gp_Ax2 nAx2Cutter = gp::XOY();

TopoDS_Shape nTSConeU = BRepPrimAPI_MakeCone( nAx2Cutter, 50, 100, 100);

//////// Get the boundary surface form the cone shape
TopExp_Explorer EXFace( nTSConeU, TopAbs_FACE);
TopoDS_Shape m_TSConeUpper;
if (EXFace.More())
m_TSConeUpper = EXFace.Current();

////////// Transfer the TopoDS_Shape into Geometric description
Handle_Geom_Surface nhSurfConeUpper = BRep_Tool::Surface( TopoDS::Face(
m_TSConeUpper));

//////// Test the point
gp_Pnt nPntTest = nhSurfConeUpper->Value(0, 100);
//////////////////////////////////
TagsNo tags attached.
Test case number

Attached Files

Activities

2003-06-27 10:00

 

2974xz.gif (5,534 bytes)   

Issue History

Date Modified Username Field Change
2003-06-18 12:26 bugmaster Assigned To bugmaster => jgv
2003-06-18 12:26 bugmaster Status new => assigned
2003-06-25 08:39 bugmaster Assigned To jgv => ofv
2003-06-27 11:59 ofv Status assigned => resolved
2003-07-01 21:27 bugmaster Status resolved => closed
2003-07-01 21:27 bugmaster Resolution @0@ => unable to reproduce
2004-12-30 11:27 bugmaster Customer =>
2011-08-02 11:32 bugmaster Category OCCT:MOD => OCCT:Modeling Data