[cgma-dev] Create Curve failure

Jane Hu janejhu at gmail.com
Wed Dec 21 12:09:02 CST 2011


Hi, Boyd:

What is the curve type you used to see the exception?

What is the curve type you used for to get
"Yet, the command "create curve 2 3 4" with the same vertices works just
fine."

Thanks.

Jane


On Mon, Dec 19, 2011 at 3:07 PM, Boyd Tidwell <bktidwell373 at gmail.com>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20111221/365940f5/attachment.htm>


More information about the cgma-dev mailing list