[cgma-dev] Create Curve failure
    Boyd Tidwell 
    bktidwell373 at gmail.com
       
    Mon Dec 19 15:07:08 CST 2011
    
    
  
First, thanks to Tim and Jane for your responses and help.
Second, I have run into a problem with the "Create Curve" command.
Most forms seem to work except one (not counting helix that is not
implemented).  Here's the scoop:
create vertex 0 0 0
create vertex 1 0 0
create vertex 1 1 0
create vertex 0 1 0
create curve 2 3 4
The create curve command hits an exception in
 Curve* OCCModifyEngine::make_Curve( GeometryType curve_type,
                                                            TBPoint
const* point1_ptr,
                                                            TBPoint
const* point2_ptr,
CubitVector const* intermediate_point_ptr,
                                                            CubitSense
sense) const
  offending line is 639 (in my code) which is:
             TopoDS_Edge new_edge = BRepBuilderAPI_MakeEdge(curve_ptr,
*vt1, *vt2);
  debug reveals at the time of the call vt1 is a pointer to something
with an Id of 0.  When I play with the executing code to force it down
the path where vt1 actually points to vertex 2 it still fails.
  Putting "circular" on the end of the command gives proper results
but, of course, it's a different curve and probably goes down a
different path.
 Yet, the command "create curve 2 3 4" with the same vertices works just fine.
Thanks in advance for looking into this one.
Take Care,
  - Boyd
    
    
More information about the cgma-dev
mailing list