diffCheck.df_util module#

diffCheck.df_util.compute_ordered_vertices(brep_face)#

Retrieve the ordered vertices of a brep face

Return type:

List[Point3d]

diffCheck.df_util.detect_idx_pt_in_list(pt, list)#

Detect the index of a point in a list

Parameters:
  • pt – the point to check

  • list – the list to check

Return type:

int

Returns:

the index of the point in the list

diffCheck.df_util.explode_brep(brep)#

Explode a brep into its faces

Return type:

List[Brep]

diffCheck.df_util.get_crv_circle_center(crv)#

Get the center of a circle

Return type:

Point3d

diffCheck.df_util.get_doc_2_meters_unitf()#

Retrieve the document unit system and get the multiplier factor to be multiplied to all the component’s inputs for df functions since they are all based in meters.

Returns:

the multiplier factor to be multiplied to the inputs to convert them to meters

diffCheck.df_util.is_pt_unique_in_dict(pt, pt_dict)#

Detect if the point exists in the dictionary, and if so, return the index

Parameters:
  • pt – the point to check

  • pt_dict – the dictionary to check

Return type:

bool

Returns:

True if the point is unique, False otherwise

diffCheck.df_util.is_pt_unique_in_list(pt, list)#

Detect if the point exists in the list, and if so, return the index

Parameters:
  • pt – the point to check

  • list – the list to check

Return type:

bool

Returns:

True if the point is unique, False otherwise