Page MenuHome

Multi-Object-Mode: SIMFACE_PERIMETER
AbandonedPublic

Authored by Habib Gahbiche (zazizizou) on Nov 6 2018, 12:16 AM.

Details

Summary

Select similar faces based on perimeter. Compute perimeter in world space. The solution is based on BM_face_calc_perimeter.

Limits:
*Threshold is used for comparison. This comes with the inherent limits of comparing floating points.

Diff Detail

Repository
rB Blender
Branch
MESH_OT_select_similar_perimeter (branched from blender2.8)
Build Status
Buildable 2405
Build 2405: arc lint + arc unit

Event Timeline

Habib Gahbiche (zazizizou) edited the summary of this revision. (Show Details)

The solution is based on BM_face_calc_perimeter.

Dalai Felinto (dfelinto) requested changes to this revision.Nov 9 2018, 12:49 PM

@Campbell Barton (campbellbarton) any suggestion regarding function names?

My suggestion regarding style applies also to D3896 and D3908.

source/blender/bmesh/intern/bmesh_polygon.c
50 ↗(On Diff #12462)

Move this up, right after DNA_modifier_types.h.

259 ↗(On Diff #12462)

Leave one extra line between functions, and add a one line comment

/**
  * Calculate the perimeter of a ngon in world space.
 */
This revision now requires changes to proceed.Nov 9 2018, 12:49 PM

(patches also need rebase since some recent change)