Page MenuHome

Smooth contour modifier
Needs ReviewPublic

Authored by YimingWu (NicksBest) on Sep 19 2021, 9:22 AM.

Details

Summary

The smooth contour modifier clears the ambiguity in contour visibility so that edges could be chained fluently.

The author is @Sebastian Parborg (zeddb) .

Here's the before/after image of this modifier applied on mesh before generating line art.

I modified a bit so mesh manipulation is enabled by default.

Diff Detail

Repository
rB Blender

Event Timeline

applied against current master 257c7753e9beb2cbd34936766d5fc6c4dc441778
getting this error on build:

  bf_blenkernel.vcxproj -> ..\build_windows_x64_vc16_Release\lib\Release\bf_blenkernel.lib

Build FAILED.

..\lib\win64_vc15\usd\include\pxr/usd/usdGeom/xformOp.h(86,1): warning C4003: not enough arguments for function-like macro invocation 'BOOST_VMD_IS_TUPLE' (compiling source file ..\blender\source\blender\io\usd\intern\usd_reader_mesh.cc) [..\build_windows_x64_vc16_Release\source\blender\io\usd\bf_usd.vcxproj]
..\lib\win64_vc15\usd\include\pxr/usd/usdGeom/xformOp.h(86,1): warning C4003: not enough arguments for function-like macro invocation 'BOOST_VMD_DETAIL_IS_TUPLE' (compiling source file ..\blender\source\blender\io\usd\intern\usd_reader_mesh.cc) [..\build_windows_x64_vc16_Release\source\blender\io\usd\bf_usd.vcxproj]
..\lib\win64_vc15\usd\include\pxr/usd/usdGeom/xformOp.h(86,1): warning C4003: not enough arguments for function-like macro invocation 'BOOST_VMD_DETAIL_PARENS_SPLIT' (compiling source file ..\blender\source\blender\io\usd\intern\usd_reader_mesh.cc) [..\build_windows_x64_vc16_Release\source\blender\io\usd\bf_usd.vcxproj]
..\lib\win64_vc15\usd\include\pxr/usd/usdGeom/xformOp.h(86,1): warning C4003: not enough arguments for function-like macro invocation 'BOOST_PP_SEQ_DETAIL_IS_NOT_EMPTY' (compiling source file ..\blender\source\blender\io\usd\intern\usd_reader_mesh.cc) [..\build_windows_x64_vc16_Release\source\blender\io\usd\bf_usd.vcxproj]
..\lib\win64_vc15\usd\include\pxr/usd/usdGeom/xformOp.h(86,1): warning C4003: not enough arguments for function-like macro invocation 'BOOST_PP_SEQ_DETAIL_EMPTY_SIZE' (compiling source file ..\blender\source\blender\io\usd\intern\usd_reader_mesh.cc) [..\build_windows_x64_vc16_Release\source\blender\io\usd\bf_usd.vcxproj]
..\lib\win64_vc15\usd\include\pxr/usd/usdGeom/xformOp.h(86,1): warning C4003: not enough arguments for function-like macro invocation 'BOOST_PP_TUPLE_SIZE' (compiling source file ..\blender\source\blender\io\usd\intern\usd_reader_mesh.cc) [..\build_windows_x64_vc16_Release\source\blender\io\usd\bf_usd.vcxproj]
..\blender\source\blender\modifiers\intern\MOD_smooth_contour.c(2171,21): warning C4189: 'cusp_uv': local variable is initialized but not referenced [..\build_windows_x64_vc16_Release\source\blender\modifiers\bf_modifiers.vcxproj]
..\blender\source\blender\modifiers\intern\MOD_smooth_contour.c(4824,37): error C4133: 'function': incompatible types - from 'Object **' to 'ID **' [..\build_windows_x64_vc16_Release\source\blender\modifiers\bf_modifiers.vcxproj]
    7 Warning(s)
    1 Error(s)

@Sebastian Parborg (zeddb) testing, building works:

got my first crash while unticking the "b)"

steps to reproduce:

add lineart
add suzzane, subdivide x3
add smooth contour
untick "b)" -> crash

@Aleš Jelovčan (frogstomp) From what I gathered, just don't uncheck anything, or make sure you don't have anything checked after the first unchecked checkbox. Leave it default and you should be good.

@YimingWu (NicksBest) Why you have code of geometry nodes in the patch?

I believe this is from automerging... I'll fix it.

Updated to latest master.

Seems that those wrong geometry node code is cleaned up.