discretize (method)

@package Methods.Geometry.Segment.discretize Discretize a Segment method @date Created on Fri Dec 05 09:57:59 2014 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b

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