I want to divide a Geom_Curve to several segments, and every segment has the same length. How can I do this?
How to compute the length of a Geom_Curve?

Right, though using GCPnts_UniformAbscissa is probably easier.

From the docs:

GCPnts_UniformAbscissa Class Reference

This class allows to compute a uniform distribution of points
on a curve (ie the points will all be equally distant).
.
#include

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT GCPnts_UniformAbscissa ()
creation of a indefinite UniformAbscissa

Standard_EXPORT GCPnts_UniformAbscissa (Adaptor3d_Curve &C, const Standard_Real Abscissa, const Standard_Real Toler=-1)
Computes a uniform abscissa distribution of points on
the Curve . Parameter Toler is equal Precision::Confusion by default.
It Is used for more precise calculation of curve length

Wed, 07/29/2009 - 14:43

I find the answer in the forum.

http://www.opencascade.org/org/forum/thread_15884/

Thanks for concern!

Wed, 07/29/2009 - 14:45

Right, though using GCPnts_UniformAbscissa is probably easier.

From the docs:

GCPnts_UniformAbscissa Class Reference

This class allows to compute a uniform distribution of points

on a curve (ie the points will all be equally distant).

.

#include

Public Member Functions

void * operator new (size_t, void *anAddress)

void * operator new (size_t size)

void operator delete (void *anAddress)

Standard_EXPORT GCPnts_UniformAbscissa ()

creation of a indefinite UniformAbscissa

Standard_EXPORT GCPnts_UniformAbscissa (Adaptor3d_Curve &C, const Standard_Real Abscissa, const Standard_Real Toler=-1)

Computes a uniform abscissa distribution of points on

the Curve . Parameter Toler is equal Precision::Confusion by default.

It Is used for more precise calculation of curve length

Thu, 07/30/2009 - 06:39

Hi jelle,

Thanks for your reply!

You are right! GCPnts_UniformAbscissa is more useful than GCPnts_AbscissaPoint.

Thanks for the reminder!