Tue, 06/20/2006 - 00:40
Forums:
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,
Stephane
http://www.exotk.org
Tue, 06/20/2006 - 19:19
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.
Stephane
http://www.exotk.org