blender-addons-contrib.git
4 years agoMove ensure_lookup_table outside the loop
Campbell Barton [Mon, 22 Jun 2015 08:46:08 +0000 (18:46 +1000)]
Move ensure_lookup_table outside the loop

4 years agofix for names & look up table for created files
Brendon Murphy [Mon, 22 Jun 2015 03:56:07 +0000 (13:56 +1000)]
fix for names & look up table for created files

4 years agoAmaranth Debug Tools
Pablo Vazquez [Mon, 15 Jun 2015 15:43:35 +0000 (17:43 +0200)]
Amaranth Debug Tools

Fix case when List Users for Datablock can't find an active space (somehow) when checking for background images.

4 years agoAdd features: Flip/Rotate UVs, Transfer UV
nutti [Mon, 15 Jun 2015 13:48:39 +0000 (22:48 +0900)]
Add features: Flip/Rotate UVs, Transfer UV

4 years agoRefactoring script. Added by binding to the parent.
Spivak Vladimir [Fri, 12 Jun 2015 11:14:19 +0000 (14:14 +0300)]
Refactoring script. Added by binding to the parent.

4 years agofix for broken paths
Brendon Murphy [Thu, 28 May 2015 00:32:13 +0000 (10:32 +1000)]
fix for broken paths

4 years agoUpdate to enum's `items` callback functions, `context` may be None.
Bastien Montagne [Mon, 25 May 2015 12:30:05 +0000 (14:30 +0200)]
Update to enum's `items` callback functions, `context` may be None.

See rBa80c1e50bc7f57bc for details.

4 years agoupdating warning
Brendon Murphy [Sun, 24 May 2015 11:06:31 +0000 (21:06 +1000)]
updating warning

4 years agograce period in contrib. T42940
Brendon Murphy [Sun, 24 May 2015 10:50:03 +0000 (20:50 +1000)]
grace period in contrib. T42940

4 years agoAdding a script 'add_dimension' v3.9.3 to the repository
cwolf3d [Sun, 17 May 2015 17:45:57 +0000 (20:45 +0300)]
Adding a script 'add_dimension' v3.9.3 to the repository

4 years agoFix T44712: broken "copy strip properties".
Bastien Montagne [Fri, 15 May 2015 10:12:16 +0000 (12:12 +0200)]
Fix T44712: broken "copy strip properties".

4 years agopaper model: switch to millimeters for all dimensions; fixed two errors
Adam Dominec [Wed, 13 May 2015 12:04:21 +0000 (14:04 +0200)]
paper model: switch to millimeters for all dimensions; fixed two errors

Corresponding commits in my development repository (latest first):
 3e2a: compatibility fix for blender 2.70
 437b: line thickness as (common_base) * (coefficient)
 9ee4: fix: exporting without tabs
 8963: unit handling: convert everything in the SVG to millimeters

4 years agoAmaranth Addon:
Pablo Vazquez [Wed, 13 May 2015 10:38:42 +0000 (12:38 +0200)]
Amaranth Addon:
- Missing Images report: Skip packed files (their original file might be missing, but they're still in the .blend file)

4 years agoExclude World from Copy Render Setting, thanks Nahuel Belich
Eugenio Pignataro [Tue, 12 May 2015 01:41:45 +0000 (22:41 -0300)]
Exclude World from Copy Render Setting, thanks Nahuel Belich

4 years agoFix T44668: User Preferences addons has a UI tab and an User Interface tab.
Bastien Montagne [Mon, 11 May 2015 18:22:24 +0000 (20:22 +0200)]
Fix T44668: User Preferences addons has a UI tab and an User Interface tab.

4 years agoremoved add_mesh_symmetrical_empty.py merged with extra objects on release.
Brendon Murphy [Sat, 2 May 2015 09:49:28 +0000 (19:49 +1000)]
removed add_mesh_symmetrical_empty.py merged with extra objects on release.

4 years ago[UV Utility] added RemoveUVByName and RenameActiveUV features.
mifth [Mon, 20 Apr 2015 17:48:26 +0000 (20:48 +0300)]
[UV Utility] added RemoveUVByName and RenameActiveUV features.

4 years agoFixed bug: If no UV maps are created, this plugin aborts.
Nutti [Fri, 10 Apr 2015 16:00:24 +0000 (01:00 +0900)]
Fixed bug: If no UV maps are created, this plugin aborts.

4 years ago== Amaranth Toolset 1.0.2 ==
Pablo Vazquez [Fri, 3 Apr 2015 09:52:25 +0000 (11:52 +0200)]
== Amaranth Toolset 1.0.2 ==
- Version bump, we need 2.74 now because of the file browser region rename (Channels to Tools)
- Remove debug print

4 years agouse os,urandom to avoid getting the same tip each launch
Campbell Barton [Thu, 26 Mar 2015 12:59:49 +0000 (23:59 +1100)]
use os,urandom to avoid getting the same tip each launch
j
reported by one user.

4 years agoCMU mocap browser: changed importing of submodules
Sybren A. Stüvel [Fri, 20 Mar 2015 09:21:34 +0000 (10:21 +0100)]
CMU mocap browser: changed importing of submodules

The new way should support reloading.

4 years agoCMU mocap browser: fixed missing/incorrect return values.
Sybren A. Stüvel [Fri, 20 Mar 2015 09:20:53 +0000 (10:20 +0100)]
CMU mocap browser: fixed missing/incorrect return values.

4 years agoDrawing freestyle-marked edges in the net + three minor bugfixes
Adam Dominec [Wed, 18 Mar 2015 15:53:51 +0000 (16:53 +0100)]
Drawing freestyle-marked edges in the net + three minor bugfixes

4 years agoUpdate themes for 2.74
Campbell Barton [Sun, 15 Mar 2015 22:29:03 +0000 (09:29 +1100)]
Update themes for 2.74

4 years agospace_view3d_cursor_control: removed unnecessary string comparisons
Sybren A. Stüvel [Fri, 13 Mar 2015 10:15:22 +0000 (11:15 +0100)]
space_view3d_cursor_control: removed unnecessary string comparisons

4 years agoCopy change just made to similar logic in mesh_inset.
Howard Trickey [Tue, 10 Mar 2015 16:46:26 +0000 (12:46 -0400)]
Copy change just made to similar logic in mesh_inset.

4 years agoUpdate for changes in BMesh
Campbell Barton [Mon, 9 Mar 2015 11:13:15 +0000 (22:13 +1100)]
Update for changes in BMesh

4 years agoFixed broken import in space_view3d_cursor_control addon
Sybren A. Stüvel [Fri, 6 Mar 2015 10:38:57 +0000 (11:38 +0100)]
Fixed broken import in space_view3d_cursor_control addon

Some modules (like cursor_utils) have been moved into the
space_view3d_cursor_control addon (see commit
7590421902cba29e6147985678a2a1da510a845c), but were still imported
from their old location.

4 years agoAmaranth Addon
Pablo Vazquez [Wed, 4 Mar 2015 16:21:47 +0000 (17:21 +0100)]
Amaranth Addon

Addition to "List Users for Datablock" feature:
When listing Users for Datablock type Material, if the object is linked, show the path where it's coming from.
Click on the path to open the lib file in a new Blender instance.

Thanks to Manu Jarvinen for testing!

4 years agoFix T43884: Modo Theme header text is unreadable
Sybren A. Stüvel [Wed, 4 Mar 2015 13:56:16 +0000 (14:56 +0100)]
Fix T43884: Modo Theme header text is unreadable

Makes header text lighter; before it was an unreadable black on dark grey.
Fix by Severin.

Signed-off-by: Sybren A. Stüvel <sybren@stuvel.eu>
4 years agoAmaranth Addon
Pablo Vazquez [Fri, 27 Feb 2015 16:53:54 +0000 (17:53 +0100)]
Amaranth Addon

Upgrade to 1.0, includes the refactor by Cesar Saez (thanks!), and a bunch of new features.

Documentation is being updated here:
http://pablovazquez.org/amaranth/

Full changelog:
https://github.com/venomgfx/amaranth/commits/master

4 years agoAmaranth: Fix for changes on File Browser
Pablo Vazquez [Sat, 14 Feb 2015 15:43:31 +0000 (16:43 +0100)]
Amaranth: Fix for changes on File Browser

4 years agoCustom property overrides.
Lukas Tönne [Tue, 10 Feb 2015 14:44:28 +0000 (15:44 +0100)]
Custom property overrides.

4 years agoData Overrides addon: Replace settings and cached data of linked objects
Lukas Tönne [Tue, 10 Feb 2015 11:50:21 +0000 (12:50 +0100)]
Data Overrides addon: Replace settings and cached data of linked objects
with temporary local values.

4 years agoMove modules into 'space_view3d_cursor_control' addon
Campbell Barton [Tue, 10 Feb 2015 13:33:53 +0000 (00:33 +1100)]
Move modules into 'space_view3d_cursor_control' addon

These were meant to be generic but ended up being a fairly small set of modules only used by this addon.

4 years agotabs -> spaces, move info to top (faster scanning)
Campbell Barton [Tue, 10 Feb 2015 13:18:55 +0000 (00:18 +1100)]
tabs -> spaces, move info to top (faster scanning)

4 years agonew addon: Export Paper Model
Addam Dominec [Mon, 9 Feb 2015 18:09:03 +0000 (19:09 +0100)]
new addon: Export Paper Model

This script generates a flat net of a given mesh.
It creates SVG files suitable for direct printing and paper modeling.

4 years agoUse a context override dictionary when calling the export operator.
Lukas Tönne [Thu, 5 Feb 2015 16:53:49 +0000 (17:53 +0100)]
Use a context override dictionary when calling the export operator.

This enables the operator to work with linked data as well.

4 years agoCleanup of the meshcache export code.
Lukas Tönne [Thu, 5 Feb 2015 16:26:46 +0000 (17:26 +0100)]
Cleanup of the meshcache export code.

Both operators share the same filtering generator method.
Reporting is now done inside the operators only.

4 years agoCacharanth addon, by Pablo Vazquez.
Lukas Tönne [Thu, 5 Feb 2015 15:34:29 +0000 (16:34 +0100)]
Cacharanth addon, by Pablo Vazquez.

This addon automates a workflow for using mesh caches to avoid linking
armatures, making proxies and the associated problems.

4 years agoDisable global undo while running operators from inside other operators,
Lukas Tönne [Thu, 5 Feb 2015 14:46:25 +0000 (15:46 +0100)]
Disable global undo while running operators from inside other operators,
to avoid unnecessary overhead from saving undo steps.

4 years agominor edits to tips
Campbell Barton [Mon, 2 Feb 2015 19:18:01 +0000 (06:18 +1100)]
minor edits to tips

4 years agoUse URL icon, add Tip: prefix, increase lower margin
Campbell Barton [Mon, 2 Feb 2015 19:11:41 +0000 (06:11 +1100)]
Use URL icon, add Tip: prefix, increase lower margin

@plyczkowski

4 years agoWrap lone lines
Campbell Barton [Sat, 31 Jan 2015 18:10:43 +0000 (05:10 +1100)]
Wrap lone lines

4 years agotweaks to file line reading
Campbell Barton [Sat, 31 Jan 2015 17:50:35 +0000 (04:50 +1100)]
tweaks to file line reading

4 years agoamend last commit, use readline method
Campbell Barton [Sat, 31 Jan 2015 17:43:15 +0000 (04:43 +1100)]
amend last commit, use readline method

4 years agoAdd experemental tips addon to show tips in the splash screen
Campbell Barton [Sat, 31 Jan 2015 17:24:45 +0000 (04:24 +1100)]
Add experemental tips addon to show tips in the splash screen

- each stored in tips.txt is a tip displayed on startup
- tips may optionally have a URL to Blender's manual (denoted by ' ~')

4 years agoDelete rtheme from contrib in order to move to main collection
Daniel Salazar [Fri, 30 Jan 2015 05:25:55 +0000 (23:25 -0600)]
Delete rtheme from contrib in order to move to main collection

4 years agoFix a small issue with RTheme. Some bottons had very little difference between their...
Daniel Salazar [Fri, 30 Jan 2015 01:26:57 +0000 (19:26 -0600)]
Fix a small issue with RTheme. Some bottons had very little difference between their on and off state

4 years agoFix for material slots
Eugenio Pignataro [Sat, 24 Jan 2015 20:09:20 +0000 (17:09 -0300)]
Fix for material slots

4 years agoCategory: copy/paste UVs
Nutti [Sat, 24 Jan 2015 01:33:17 +0000 (10:33 +0900)]
Category: copy/paste UVs

Update the add-on to version 2.1.
This version fix some bugs.

related links:
https://developer.blender.org/T38460
https://github.com/nutti/Copy-And-Paste-UV_Blender-Ext

4 years agoTheme Flatty Light
Pablo Vazquez [Thu, 22 Jan 2015 22:51:21 +0000 (23:51 +0100)]
Theme Flatty Light

As discussed, moved theme to master.

4 years agoTheme Flatty Light
Pablo Vazquez [Thu, 22 Jan 2015 22:41:26 +0000 (23:41 +0100)]
Theme Flatty Light

Update on colors for text editor and other tweaks.

4 years ago- improved UI, improved EqualizeScale*
Luca Carella [Sat, 17 Jan 2015 09:36:47 +0000 (10:36 +0100)]
- improved UI, improved EqualizeScale*

*now it's possible to keep proportions of uv island during scale, and select which axis to lock.

4 years agoMove 'render auto tile size' addon to main repo.
Bastien Montagne [Tue, 13 Jan 2015 20:45:52 +0000 (21:45 +0100)]
Move 'render auto tile size' addon to main repo.

4 years agoAdded back user-preference setting to disable keymap auto-registration
dairin0d [Mon, 12 Jan 2015 05:56:41 +0000 (07:56 +0200)]
Added back user-preference setting to disable keymap auto-registration

4 years agoinset: no need to use index lookups
Campbell Barton [Sat, 10 Jan 2015 11:19:24 +0000 (22:19 +1100)]
inset: no need to use index lookups

4 years agofix for lookup table
Brendon Murphy [Sat, 10 Jan 2015 04:13:45 +0000 (15:13 +1100)]
fix for lookup table

4 years agofixes matrix_world issue
zeffii [Fri, 2 Jan 2015 13:45:21 +0000 (14:45 +0100)]
fixes matrix_world issue

4 years agoadds lookup tests to support older versions of blender too
zeffii [Fri, 2 Jan 2015 10:57:42 +0000 (11:57 +0100)]
adds lookup tests to support older versions of blender too

4 years agoCopy and Paste UV
Nutti [Wed, 31 Dec 2014 05:30:25 +0000 (14:30 +0900)]
Copy and Paste UV
===================
- Upload script
  Support new feature, and some optimization about this script.
    1. Support copy/paste between UV maps.
2. Support copy/paste by selection sequence.
- Wiki update

The wiki page is ready, see here:
http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/UV/Copy_Paste_UV

Modified Paths:
-------------------
blender-addons-contrib/uv_copy_and_paste_uv.py

4 years agoAmaranth Theme
Pablo Vazquez [Wed, 31 Dec 2014 05:25:06 +0000 (02:25 -0300)]
Amaranth Theme
The update for new theme elements (61b0759) assumed white emboss while Amaranth uses a dark drop shadow.

4 years agoio_vector contrib addon: Version cleanup and remove tracker message.
Howard Trickey [Tue, 30 Dec 2014 18:12:32 +0000 (13:12 -0500)]
io_vector contrib addon: Version cleanup and remove tracker message.

4 years agoRevert "Initial Collada exporter from Juan Linietsky (T41071)"
Sergey Sharybin [Thu, 25 Dec 2014 18:37:21 +0000 (23:37 +0500)]
Revert "Initial Collada exporter from Juan Linietsky (T41071)"

This reverts commit 2187f6e51e0aa5cc562074af68dfa29bc3dcc000.

It was committed by accident.

4 years agoupdated to new api
Luca Carella [Thu, 25 Dec 2014 17:15:06 +0000 (18:15 +0100)]
updated to new api

4 years agoInitial Collada exporter from Juan Linietsky (T41071)
Campbell Barton [Tue, 15 Jul 2014 09:03:14 +0000 (19:03 +1000)]
Initial Collada exporter from Juan Linietsky (T41071)

4 years agoSlope rotation feature: Dupli rotation gets aligned to the ground
Lukas Tönne [Mon, 22 Dec 2014 12:32:08 +0000 (13:32 +0100)]
Slope rotation feature: Dupli rotation gets aligned to the ground
surface slope with a user-defined factor.

4 years agoFix for access of undefined ground object in UI code giving pointless
Lukas Tönne [Mon, 22 Dec 2014 10:24:19 +0000 (11:24 +0100)]
Fix for access of undefined ground object in UI code giving pointless
exceptions.

4 years agoupdate for 2.73 theme elements, removes error report
Brendon Murphy [Mon, 22 Dec 2014 03:13:34 +0000 (14:13 +1100)]
update for 2.73 theme elements, removes error report

4 years agoOperator for estimating the maximum number of samples fitting on the
Lukas Tönne [Sat, 20 Dec 2014 13:45:25 +0000 (14:45 +0100)]
Operator for estimating the maximum number of samples fitting on the
ground object.

This is based on the optimal circle packing density, which is an upper
bound for the number of samples.

This is a way to avoid gaps in the sampling from insufficient limit for
number of samples.

4 years agoRenamed the patch_radius and max_patches settings to sample_distance and
Lukas Tönne [Sat, 20 Dec 2014 12:30:28 +0000 (13:30 +0100)]
Renamed the patch_radius and max_patches settings to sample_distance and
max_samples respectively, which is more intuitive.

4 years agoFix for ground object scaling: generate samples in world space.
Lukas Tönne [Sat, 20 Dec 2014 12:16:17 +0000 (13:16 +0100)]
Fix for ground object scaling: generate samples in world space.

Otherwise the distance radius is an object space length which gives
confusing results.

4 years agoEnable profiling of the patch update step as well.
Lukas Tönne [Fri, 19 Dec 2014 13:11:25 +0000 (14:11 +0100)]
Enable profiling of the patch update step as well.

4 years agoCan use the mouse cursor progress indicator for baking now, since we're
Lukas Tönne [Fri, 19 Dec 2014 10:31:20 +0000 (11:31 +0100)]
Can use the mouse cursor progress indicator for baking now, since we're
not using the main bake operator any more.

4 years agoImproved cache baking operators which make use of threaded depsgraph
Lukas Tönne [Fri, 19 Dec 2014 10:26:29 +0000 (11:26 +0100)]
Improved cache baking operators which make use of threaded depsgraph
updates.

Previously each object was baked explicitly on its own. This is much
slower than the regular scene baking because it doesn't utilize the
threaded depsgraph updates.

Now the operator simply runs through the whole frame range once,
creating point cache data, and then bakes that data to make the caches
permanent. (Note: using the "bake_all" operator would also work, but
doesn't give much control and progress feedback is limited).

4 years agoMoved physics baking code to a new physics module.
Lukas Tönne [Thu, 18 Dec 2014 17:15:33 +0000 (18:15 +0100)]
Moved physics baking code to a new physics module.

4 years agoAnother template object option to hide copies in the viewport.
Lukas Tönne [Tue, 16 Dec 2014 17:36:00 +0000 (18:36 +0100)]
Another template object option to hide copies in the viewport.

This is useful to hide non-renderable object which are only used for
simulation, without having to toggle their visibility every time before
updating patches.

4 years agoOptional layers setting to directly place new objects in specific layers.
Lukas Tönne [Tue, 16 Dec 2014 17:30:22 +0000 (18:30 +0100)]
Optional layers setting to directly place new objects in specific layers.

4 years agoFix for vertex weighting of samples: the coordinate spaces of sample
Lukas Tönne [Tue, 16 Dec 2014 10:50:24 +0000 (11:50 +0100)]
Fix for vertex weighting of samples: the coordinate spaces of sample
location and vertex locations have to be consistent.

When these vectors are in different spaces there is usually a large
offset between them, leading to very uniform weights and interpolation
always in the center of a face.

4 years agoSmall fix for undefined variable in vertex loop if the list is empty.
Lukas Tönne [Tue, 16 Dec 2014 10:40:31 +0000 (11:40 +0100)]
Small fix for undefined variable in vertex loop if the list is empty.

4 years agoTwo more progress displays for the SampleViz object creation and the
Lukas Tönne [Tue, 16 Dec 2014 10:35:42 +0000 (11:35 +0100)]
Two more progress displays for the SampleViz object creation and the
blob grouping process.

4 years agoInternal support for rotating duplis according to the ground slope normal.
Lukas Tönne [Tue, 16 Dec 2014 10:17:44 +0000 (11:17 +0100)]
Internal support for rotating duplis according to the ground slope normal.

4 years agoSimplified progress reports: Use simple module-level settings for
Lukas Tönne [Tue, 16 Dec 2014 09:21:56 +0000 (10:21 +0100)]
Simplified progress reports: Use simple module-level settings for
controlling output, and don't pass report types as extra args.

4 years agoSome UI tweaks to improve usability and avoid confusing workflow.
Lukas Tönne [Mon, 15 Dec 2014 21:05:32 +0000 (22:05 +0100)]
Some UI tweaks to improve usability and avoid confusing workflow.

The main "make samples" operator now disables the ground object settings
UI, which forces users to explicitly delete the samples before running
it again.

The secondary update operators for patches and physics are disabled
when there are no samples/blobs, which makes the workflow much more
structured and easier to understand.

4 years agoMore usable default visibility settings for automatically generated
Lukas Tönne [Mon, 15 Dec 2014 20:08:19 +0000 (21:08 +0100)]
More usable default visibility settings for automatically generated
objects.

Child objects grouped under a common root (blobs and patches) are now
unselectable by default, otherwise selecting by clicking  becomes barely
possible with all the extra geometry.

The visualizer object is now hidden by default, it only serves as an
occasional hint for debugging.

The radius for duplicator faces is now very very small, so it doesn't
hinder the appearance in the viewport (face size doesn't matter for
duplis).

4 years agoUse separate root objects to gather the sample visualization and the
Lukas Tönne [Mon, 15 Dec 2014 19:41:30 +0000 (20:41 +0100)]
Use separate root objects to gather the sample visualization and the
duplicator objects.

This makes it easier to control either of these, because they usually
require different settings, e.g. one may want to completely hide the
visualization without disabling viewport or rendering for duplis.

4 years agoFix for face interpolation after ray casts, now supports non-triangle
Lukas Tönne [Mon, 15 Dec 2014 19:14:58 +0000 (20:14 +0100)]
Fix for face interpolation after ray casts, now supports non-triangle
ground objects.

The ray case function returns a poly index instead of the plain tessface
index. Now the blob samples store a list of polygon weights instead of
tessface weights, so arbitrary ngons are supported properly.

Note: this code relies on the new mathutils.interpolate submodule.

4 years agoTiming info added to the progress report system.
Lukas Tönne [Mon, 15 Dec 2014 13:58:00 +0000 (14:58 +0100)]
Timing info added to the progress report system.

4 years agoGeneric progress report system with optional stdout and wm.progress
Lukas Tönne [Mon, 15 Dec 2014 13:28:17 +0000 (14:28 +0100)]
Generic progress report system with optional stdout and wm.progress
output.

This works as a context manager: For any step in the process a loop can
be wrapped in the ProgressContext context manager. These classes are
generated by make_progress_reporter, so the main output options can be
defined on a high level, while actual number of steps is defined only
when actually running the job and the total amount of items is known.

4 years agoSqueeze a little bit more performance out of the sampling code by
Lukas Tönne [Mon, 15 Dec 2014 11:08:08 +0000 (12:08 +0100)]
Squeeze a little bit more performance out of the sampling code by
"pre-allocating" grid lists.

This is about as far as optimization can go in plain python (avoiding
class __init__ methods could help further). Eventually this code should
be implemented in C/C++ though, dealing with large arrays is not pythons
strong point ...

4 years agoMoved creating of base levels and the point grid in the dart throwing
Lukas Tönne [Mon, 15 Dec 2014 10:26:13 +0000 (11:26 +0100)]
Moved creating of base levels and the point grid in the dart throwing
method into the actual generator.

This takes considerable time (to be investigated) and should only happen
when the generator is actually used.

4 years agoRemoved home-grown Profiling class, cProfile does a much better job.
Lukas Tönne [Mon, 15 Dec 2014 09:15:01 +0000 (10:15 +0100)]
Removed home-grown Profiling class, cProfile does a much better job.

4 years agoMoved profiling code up one level.
Lukas Tönne [Sat, 13 Dec 2014 13:46:32 +0000 (14:46 +0100)]
Moved profiling code up one level.

4 years agoMoved calculation of barycentric face weights from the "patch" stage to
Lukas Tönne [Sat, 13 Dec 2014 12:49:51 +0000 (13:49 +0100)]
Moved calculation of barycentric face weights from the "patch" stage to
the "blob" stage.

Face interpolation itself does not depend on vertex groups. It makes
sense to have this in the slower sampling stage ("blobs") instead, so
the second copying/dupli stage ("patches") stays as fast as possible.

The workflow rationale is that users can create a ground surface
sampling once (which can take a few minutes on large scales), and then
continue tweaking the dupli objects and vertex groups of the ground,
which is quite fast (< 1 second typically).

4 years agoFix for invalid list assignment when popping the last cell from a level.
Lukas Tönne [Sat, 13 Dec 2014 11:41:57 +0000 (12:41 +0100)]
Fix for invalid list assignment when popping the last cell from a level.

Also fixed a potential float rounding error giving invalid index.

4 years agoOptimization for neighbor lookup on the point grid.
Lukas Tönne [Sat, 13 Dec 2014 11:04:43 +0000 (12:04 +0100)]
Optimization for neighbor lookup on the point grid.

As suggested in the paper, "Poisson Disk Point Sets by Hierarchical Dart
Throwing", points can be stored in adjacent cells of the point grid.
This increases memory usage somewhat, but greatly improves lookup times.

4 years agoRemoved mesh debugging from dart throwing code.
Lukas Tönne [Sat, 13 Dec 2014 10:23:12 +0000 (11:23 +0100)]
Removed mesh debugging from dart throwing code.

4 years agoSmall improvement to the PointGrid neighbors function: grid_factor
Lukas Tönne [Sat, 13 Dec 2014 00:05:37 +0000 (01:05 +0100)]
Small improvement to the PointGrid neighbors function: grid_factor
can be calculated in advance and stored in GridLevels.

4 years agoFix for costly pop() function calls on lists.
Lukas Tönne [Fri, 12 Dec 2014 23:51:57 +0000 (00:51 +0100)]
Fix for costly pop() function calls on lists.

These are called a lot when the number of active cells (overall sampling
area) grows. Popping an element in the middle of a list is much more
expensive than popping from the end, but since we don't actually care
about ordering, we can simply swap the element for the one at the end.

4 years agoUse the cProfile package of python instead of own clumsy code.
Lukas Tönne [Fri, 12 Dec 2014 23:43:59 +0000 (00:43 +0100)]
Use the cProfile package of python instead of own clumsy code.