View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002974 | Community | OCCT:Modeling Data | public | 2003-06-18 10:48 | 2006-06-29 09:15 |
| Reporter | bugmaster | Assigned To | |||
| Priority | normal | Severity | trivial | ||
| Status | closed | Resolution | unable to reproduce | ||
| OS | All | ||||
| Fixed in Version | 5.1.0 | ||||
| Summary | 0002974: Bug in parametric definition of conical surface | ||||
| Description | Bug 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); ////////////////////////////////// | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
|
| 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 |
|
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 |