Commit Graph

19 Commits

Author SHA1 Message Date
99d2c979a9 Cleanup: fix typos
Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D16234
2022-10-14 19:52:42 +02:00
b8d86ccc0a File headers: use SPDX license identifiers
See T95597
2022-02-11 16:05:07 +11:00
d68dca98ce Cleanup: fix typos in source code
Contributed by luzpaz.

Differential Revision: https://developer.blender.org/D5801
2022-01-05 15:46:41 +01:00
1d91e8c12a Cleanup: trailing space & tabs to spaces 2021-12-01 10:43:38 +11:00
e2516bfae6 PDT: Add "View Normal" Operation enhancement
This enhancement enables the user to work always Normal to the View
as defined by "Working Plane" in PDT Design Functions Section.

For example: If the working plane is set to Front and the Operation is "Extrude Geometry"
the system will extrude along the Y axis by the amount specified in the "Distance" Entry Box.
Specifying Working Plane as "View" cause the system to work always Normal to the current
view orientation, i.e. into, or out of your screen.

This enhancement is only available for Blender 2.9x builds.
2021-05-17 19:43:36 +02:00
590710871b PDT: Fix Library path issue, Add Trig Waves Functions
An issue occurred if you opened Blender with a new file where the
Parts Library path pointed relative to the Blender App, not the working
directory, so was not found.

The Parts Library file is now moved to the Parts Library Menu, so must
be set for new .blend files. Existing .blend files are not affected by
this change.

Error message altered to reflect the option of having this Parts Library
live anywhere.

New Feature: Add Trig Waves Functions

Requires the user to select an existing object in the Trig menu.
2020-05-12 00:25:54 +02:00
4f3a6cafc0 PDT: Revise Tangent Functions
This commit is still WIP.

Added Enumerator for Tangent Types, refactored code, revised DocStrings.

This section of PDT still requires extensive testing, currently underway, but not complete.
2020-03-28 18:55:55 +01:00
f58fe4df0d PDT: Further Expansion of Tangent System
This is still WIP.

Further expand options to work in any plane and from selected vertices.
DocStrings Added. Code refactored.

Further testing is still required before this can be released for general use.
2020-03-28 18:55:43 +01:00
1d5837400d PDT: Add user-requested Tangent Functions (new feature)
This Branch is WIP, still in development and not yet suitable for a release.

This process will add the ability to draw tangents from a point to an arc, or circle.
It will also add the ability to draw tangents, both inner and outer, between two arcs.
Arc centres and radii can be manually input into the UI, or set from three vertices that
lie on an imaginary arc. Tangent functions have their own PDT Sub-menu.

This commit only works in Front view, to get the maths right, later commits will expand
this into any view orientation, using existing PDT code.

This commit does not contain DocStrings for the new pdt_tangent.py file, these will
also follow in a later commit.

It is recommended that this commit is not used in a production environment. Once
complete, a new version Branch will be added, at this point the code will reach Alpha
status and be appropriate for extensive user testing.
2020-03-28 18:55:24 +01:00
b652724b15 PDT: Fix Library Error when not in Object Mode
Attempts to Append, or Link Objects, Collections, or Materials when not in Object
mode resulted in a system error. This is now trapped as an Add-on error and
reported to the User.
2020-02-05 12:28:12 +01:00
1a6900ade7 PDT: Docstring fixes and a small bug fix
All Docstrings have been examined for typos and format, etc.

Small code change to set Selection Mode to "SEL" if operation is not
"C" or "P" to avoid possible errors when using other operations.
2020-02-04 14:25:53 +01:00
83ad65d377 PDT: Update Docstrings per Design Spec Document 2020-02-01 16:44:06 +01:00
877308f917 PDT: Refactor per Pylint suggestions + readability
- Remove unused imports
- Add comments where appropriate
- Improve readability of variable names
- Re-implement a couple of functions using dictionaries instead of if-statements
- Results of Pylint & Black operations, plus some fixes to code.
2020-02-01 16:42:29 +01:00
4d0298a3f9 PDT: Refactor - Stage 4
- Check Object Mode is either EDIT or OBJECT as appropriate.
- Change If loop to check command values - error if D, E, For M commands.
- Remove surplus command check in command_maths function.
- Added import of exceptions file.
- Check for Mesh Objects in Object or Edit Mode first and exit with error
  message if not.
- Some minor changes for obscure failures in unusual circumstances.
- Fixes and changes to code to correct minor errors and remove unnecessary
  checks.
- Refactored Command File structure.
- Add more checks to Fillet Operation to check selection and make sure
  current selected vertices/edges are always used. Previous version could
  use wrong selection if Bmesh SelectHistory was in place for Faces, or Edges.
2020-02-01 16:41:11 +01:00
fccd99b832 PDT: Refactor codebase (stage 1 + 2)
Moved all PDT Design Operations and Tools to Command Line file to de-dupe
code. All can now be called from the command line, e.g. a command of "otc" sets
the active objects Origin To Cursor, etc. Needs extensive further testing to see if all
Operations in all Modes still work exactly as before.
Tools menu split out from PDT Design so it can be minimised when not in use.
2020-02-01 16:40:29 +01:00
20598a3ac6 PDT: Re-Arrange Menus to UI Panel Width
The menus now are re-arranged according to the width of the UI.
A cut-off value is set in the Add-on Preferences.

Remove vestiges of automatic UI highlighting experiment.
2020-01-14 22:26:56 +01:00
0d40bb678c PDT: Modify Fillet functionality
This enables two non-connected edges to be filleted. The Process starts with an
intersection of the two edges, then fillets the corner according to input values
in the UI. This option is selected by setting the Int/Fillet checkbox.

The command Line version now takes the `fi...` format to intersect first. e.g.

`fi1.1,6,0.05` performs an intersected fillet of 1.6 units radius, 6 segments,
concave profile.
2020-01-14 22:25:04 +01:00
4795316548 PDT: Add features to Command Line
Add "Re-Run" button to repeat last command line input.
Add "Maths Output" to take result of calculation when the `mo` command is used.
Allow commas in maths operation so calls like `hypot(3,4)` can be used.
2020-01-14 22:24:07 +01:00
e7594d45b1 Add Clockmender's Precision Drawing Tools v1.1.5
Accepted for inclusion per T70238
2019-12-09 00:52:27 +01:00