discretize (method)

discretize(self, nb_point=0)[source]

Return the discretize version of the Segment. Begin and end are always returned

Parameters:
  • self (Segment) – A Segment object
  • nb_point (int) – Number of points to add to discretize the line (Default value = LINE_NPOINT_D)
Returns:

list_point – List of complex coordinate of the points

Return type:

list

Raises:

NbPointSegmentDError – nb_point must be an integer >=

exception NbPointSegmentDError[source]

Bases: Exception