Forum archiveIssue archiveOther usage issues

Archived discussion

bug in GCPnts_AbscissaPoint::Length ?

Other usage issuesTue, 06/20/2006 - 00:401 reply

Browse this forum
QuestionAuthor

Hi,

I have a wire, and I'm trying to palce points on this wire using GCPnts_UniformAbscissa.
I've done some tests, and in some cases, I have strange results.
It seems that GCPnts_AbscissaPoint::Length does not work correctly when the given curve is a BRepAdaptor_CompCurve done with a wire.

ex, with a test wire, using GCPnts_AbscissaPoint::Length
returns 748.76
and with
Standard_Real length2;
GProp_GProps LProps;
BRepGProp::LinearProperties(wire,LProps);
length2 = LProps.Mass();
returns 1987.31

this means that as the length is not correctly computed, the points are wrongly placed.

did somebody encoutered this problem before ?

Thanks,

Author
http://www.exotk.org

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

it seems to be a problem with the BRepTools_WireExplorer which rejects some edges of the wire. Thus the wrong length computation, which causes bad point placement.

Author
http://www.exotk.org