Constraint-based geometry sketcher for blender

Overview

Geometry Sketcher

Constraint-based sketcher addon for Blender that allows to create precise 2d shapes by defining a set of geometric constraints like tangent, distance, angle, equal and more. Sketches stay editable and support a fully non-destructive workflow.

Minimum version: Blender 2.92

Discussion and feedback: Discord

⚠️ Experimental addon: This is still work in progress, don't use it on production files without a backup.

Addon installation

  • Download the ZIP archive from github (do not unpack it after downloading)
  • Open Blender and go to: Edit > Preferences > Add-ons > Press "Install..." button
  • Browse to the location of the ZIP and select it, then press "Install Add-on"
  • Enable the addon by pressing the checkbox

Dependency installation

Geometry sketcher heavily depends on the solvespace python module and won't be fully funtional without it.

  • Inside the addon's preferences check the "Solver Module" tab to see if the module is already available
  • Either press "Install from PyPi"
  • Or download the appropriate *.whl file here and press "Install from local File"
Comments
  • [BUG] Dark and Light themes not working in Edit > Preferences > Themes

    [BUG] Dark and Light themes not working in Edit > Preferences > Themes

    Contact Details

    Dark, Light bug on Edit - Preferences on Add-on tab

    Description

    image

    Dark and Light bug not work on Blender 3.2.0 and 3.2.1 image

    then next click Dark image

    Addon Version

    0.24.0

    Blender Version

    3.2.0 and 3.2.1

    What platform are you running on?

    Mac OSX

    bug 
    opened by mac4kent 41
  • Create

    Create "constructor" constraints.

    Fixes #258

    20220914_12h50m35s_grim 20220914_12h47m27s_grim

    TODO

    • [x] Update constraint value from the attached entity instead of the solver .. hmmm
    • [x] Change look
    • [x] Make dimension read only when is_reference is True.
    • [x] Possibly create class DimensionalConstraint in base_constraint.py
    • [x] Fix bug where color is not proper during mouse hover right after switching reference mode
    • [x] Revert change where reference constraints are filtered out of the constraints menu
    opened by amrsoll 28
  • Installation problems on Mac

    Installation problems on Mac

    Contact Details

    [email protected]

    Description

    Trying to follow the instructions at https://hlorus.github.io/CAD_Sketcher/installation/

    Okay I click on the "Zip Archive" but being on a Mac this automatically gets expanded in $HOME/Downloads. Okay I use compress to create a zip file and then I think I am able to install the Addon.

    I assume it is not working because I do not have blender with solverspace installed. ( In the past I have installed solverspace as an app I assume from a dmg but it was some time ago )

    The instructions say It's recommended to use the addon with Blender installed from the official website. What does that mean? I have to install a copy of Blender with solverspace already installed or just that blender needs to have been installed from official website?

    Then it gives the option Install from PyPi - Press. "Install from PyPI" but I see nothing like that to press. Try manually installing with pip install py-slvs. Restart Blender but no solverspace in Bender Preferences.A bug happened!

    Addon Version

    latest

    Blender Version

    3.2.2

    What platform are you running on?

    Mac OSX

    bug 
    opened by KeithSloan 13
  • construction line problem (?)

    construction line problem (?)

    1. draw rectangle, make it 4 meters on one side and 7 on the other.
    2. draw a diagonal line top right to bottom left, and make it a construction line
    3. click on the midpoint and the line and make the line a construction line.
    4. Resize the box to 20mm on one side and 40mm on the other. The construction line won't reach all the way to the bottom left.
    5. Delete the construction line and draw a new line top right corner to bottom left.
    6. Make it a construction line. The new line doesn't go all the way to the bottom left. Repeated attempts will produce the same result. Expected the original construction line to resize with the rectangle. Otherwise, expected the new construction line to maintain length when converted from a regular line. Using Blender 3.1.0 and latest version of sketcher (downloaded april 23) cosntructionLine
    bug 
    opened by pgrove604 10
  • Solidifying a sketch - Jagged result

    Solidifying a sketch - Jagged result

    I might be missing something, but is there a way to correct the 'jagged' result of solidify modifier? https://user-images.githubusercontent.com/507113/134035213-0180d4e9-b9dc-470f-8590-b8a25f85f41b.mp4

    opened by theoryshaw 10
  • Display shortcut hints for operators

    Display shortcut hints for operators

    This is proposal for #95

    • Extract out all the operators' names into a separate module to be reused without introducing cycle dependencies. Also put all the names in one place
    • Original thought was to have each operator defines its own keymap (makes more sense in term single responsibility) but due to the nature of key mapping where management/cross reference are more important, move them to a common place keymaps.py to be shared across.

    Multiple shortcuts: image

    Single shortcut: image

    opened by BaoNTGH 9
  • Line width not working on mac

    Line width not working on mac

    Description It may be a mac only thing, or resolution dependant- retina 13,3-inch (2560 × 1600)- the outer lines for sketching are too thin to use or select. It's an issue from the start- really hard to activate a plane when creating sketch (basically pixel thin..should it also be selectable from the "face" of the plane, not only the edge?), hard to select sides etc to add constraints.

    To Reproduce Steps to reproduce the behavior:

    1. Using the add-on on Macbook air M1

    Expected behavior To select the planes and sketche's edges without a hassle.

    System Information:

    • OS: macOS Monterey 12.3.1
    • Blender Version: 12.3.1
    • Addon Version: 0.20.0
    thin line blender bug gpu 
    opened by mervenca 9
  • [BUG]  Redundant constraints result in

    [BUG] Redundant constraints result in "Unknown Failure".

    Description

    I made a simple sketch with a redundant constraint and noticed that the solver gives me the error message "Unknown Failure: Cannot solve sketch due to unknown failure".

    Expected result: A message saying that there are redundant constraints that highlights the constraints that may be removed. Additionally, I would expect the failure to be more visually noticeable (e.g. colored text or other kind of pop up notification).

    Actual Result: "Unknown failure" is displayed in the notification area and the sketch becomes unresponsive (no dragging or other changes seem possible).

    Constraint_failure.blend.zip

    Addon Version

    0.25.0

    Blender Version

    3.2.2

    What platform are you running on?

    Mac OSX

    feature request 
    opened by ftc 8
  • Reference Dimensions

    Reference Dimensions

    Discussed in https://github.com/hlorus/CAD_Sketcher/discussions/84

    Originally posted by TheMakerTales April 30, 2022 A "construction" mode for dimensional constraints. Sometimes you want to know how long or round a part of a sketch is but not actually contain it.

    opened by hlorus 8
  • add margin for Distance dimension text (solves Bug 145) - comments addressed

    add margin for Distance dimension text (solves Bug 145) - comments addressed

    WIP. Distance constraint looks OK. Angle and Diameter not implemented yet.

    https://user-images.githubusercontent.com/10360161/173745629-c30901cc-6c7c-482a-b42a-945c8136047c.mp4

    opened by exegetor 8
  • Support entity naming

    Support entity naming

    • By default, name will be generated by combining type and index.
    • Naming could be done through entity's context menu and also in entity browser
    • In entity browser, selector had been changed to the radio button in first column
    • name is introduced as StringProperty on SlvsGenericEntity as a wrapper of name property to provide default name value for entities saved by previous CAD Sketch plugin where name were not populated

    This is to address issue #53

    Change name in context menu image

    Change name in entity browser image

    Selection mode image

    opened by BaoNTGH 8
  • Feature(s) Request: Select All, Scale, Rotate, export sketch

    Feature(s) Request: Select All, Scale, Rotate, export sketch

    Hello everybody, You are Great, thanks a Million for your efforts. I've gone through the Roadmap and Issues before adding this: -Select all: maybe the same shortcut as Blender, lasso selection would be appreciated. -Move (on the roadmap), but scale and rotate too would be helpful. -copy paste (also on the roadmap): what about paste transformed (from solvespace) move or scale or rotate, or alltogether at once. -Export sketch to: -solvespace slvs (if possible), -SVG (blender has no exporter, I found an addon -bezier2svg- but will export the curve not the sketch with its constraints), -DXF (blender exports dxf from mesh not from curve and that blows the Idea of exporting).

    My use case: I'm an Interior designer, 1-I need to show renders to the client(covered by Blender-Cycles) 2-I need to send files to the CNC Router (here is where I need to export clean SVG or DXF for the router shop to generate .Gcode 3- I need to generate 2D shop drawings for manufacturing(covered by blenderbim or sverchok or by exporting to freecad and finish there).

    opened by Shaddy-ElDesouky 0
  • [BUG] Reversed normals

    [BUG] Reversed normals

    Contact Details

    No response

    Description

    c+N helps, but after edit sketch it's reverse it again

    2022-11-23x09:28:03

    Addon Version

    0.25.0

    Blender Version

    3.3.1

    What platform are you running on?

    Linux

    bug 
    opened by chiboreache 0
  • Arc Angle

    Arc Angle

    Hello,

    is there a way to define an angle for an arc opening. i can fix the corner points with constraints, but it would be much more convenient to fix the opening angle of the arc directly.

    opened by void-dragon 0
  • [BUG]  Supplementry Angle Unit Input Doing strange Things

    [BUG] Supplementry Angle Unit Input Doing strange Things

    Contact Details

    No response

    Description

    When you try and control/input an angel to a supplementary angle things go a little weird. @hlorus hase taken a small look and said that it looked slightly "random" might be a good call for @amrsoll to take a look at it as you have the most experience working on this area of the code,

    Capture (1)

    Addon Version

    latest

    Blender Version

    3.3

    What platform are you running on?

    Windows

    bug 
    opened by TheMakerTales 0
  • hole dimension constrain frozen[BUG]

    hole dimension constrain frozen[BUG]

    Contact Details

    [email protected]

    Description

    I created a hole in Cadsketcher. Next, I applied a dimensional constrain (alt o). The result was that the dimension cannot be moved or changed. a workaround is to use the sketcher menu, look for the constrain (show/hide) then change dimemension. however, the dimension text stays inside the hole. I tried outside of a model but same results. While following the CAD Modeling In Blender 3.2 | Using CAD Sketcher you tube, worked once. if I tried new holes then the issue arises. I also seen intermittent issue with regular dimensions but more prominent with holes and arcs.

    Addon Version

    0.25

    Blender Version

    3.3.1

    What platform are you running on?

    Windows

    bug 
    opened by adonishmedia 1
Owner
null
Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python

geojson-area Calculate the area inside of any GeoJSON geometry. This is a port of Mapbox's geojson-area for Python. Installation $ pip install area U

Alireza 87 Dec 14, 2022
Wraps GEOS geometry functions in numpy ufuncs.

PyGEOS PyGEOS is a C/Python library with vectorized geometry functions. The geometry operations are done in the open-source geometry library GEOS. PyG

null 362 Dec 23, 2022
WIP: extracting Geometry utilities from datacube-core

odc.geo This is still work in progress. This repository contains geometry related code extracted from Open Datacube. For details and motivation see OD

Open Data Cube 34 Jan 9, 2023
Advanced raster and geometry manipulations

buzzard In a nutshell, the buzzard library provides powerful abstractions to manipulate together images and geometries that come from different kind o

Earthcube Lab 30 Jun 20, 2022
Summary statistics of geospatial raster datasets based on vector geometries.

rasterstats rasterstats is a Python module for summarizing geospatial raster datasets based on vector geometries. It includes functions for zonal stat

Matthew Perry 437 Dec 23, 2022
Raster-based Spatial Analysis for Python

?? xarray-spatial: Raster-Based Spatial Analysis in Python ?? Fast, Accurate Python library for Raster Operations ⚡ Extensible with Numba ⏩ Scalable w

makepath 649 Jan 1, 2023
Spatial Interpolation Toolbox is a Python-based GUI that is able to interpolate spatial data in vector format.

Spatial Interpolation Toolbox This is the home to Spatial Interpolation Toolbox, a graphical user interface (GUI) for interpolating geographic vector

Michael Ward 2 Nov 1, 2021
h3-js provides a JavaScript version of H3, a hexagon-based geospatial indexing system.

h3-js The h3-js library provides a pure-JavaScript version of the H3 Core Library, a hexagon-based geographic grid system. It can be used either in No

Uber Open Source 648 Jan 7, 2023
GebPy is a Python-based, open source tool for the generation of geological data of minerals, rocks and complete lithological sequences.

GebPy is a Python-based, open source tool for the generation of geological data of minerals, rocks and complete lithological sequences. The data can be generated randomly or with respect to user-defined constraints, for example a specific element concentration within minerals and rocks or the order of units within a complete lithological profile.

Maximilian Beeskow 16 Nov 29, 2022
A service to auto provision devices in Aruba Central based on the Geo-IP location

Location Based Provisioning Service for Aruba Central A service to auto provision devices in Aruba Central based on the Geo-IP location Geo-IP auto pr

Will Smith 3 Mar 22, 2022
Constraint-based geometry sketcher for blender

Constraint-based sketcher addon for Blender that allows to create precise 2d shapes by defining a set of geometric constraints like tangent, distance,

null 1.7k Dec 31, 2022
Blender Game Engine Game Type Templates Logic Bricks (and Python script) based Game Templates for Blender

Blender-Game-Engine-Templates Blender Game Engine Game Type Templates Logic Bric

null 3 Oct 25, 2022
Blender addons to make the bridge between Blender and geographic data

Blender GIS Blender minimal version : 2.8 Mac users warning : currently the addon does not work on Mac with Blender 2.80 to 2.82. Please do not report

null 5.9k Jan 2, 2023
Blender addons - A collection of Blender tools I've written for myself over the years.

gret A collection of Blender tools I've written for myself over the years. I use these daily so they should be bug-free, mostly. Feel free to take and

null 217 Jan 8, 2023
Blender addon that enables exporting of xmodels from blender. Great for custom asset creation for cod games

Birdman's XModel Tools For Blender Greetings everyone in the custom cod community. This blender addon should finally enable exporting of custom assets

wast 2 Jul 2, 2022
Easytile blender - Simple Blender 2.83 addon for tiling meshes easily

easytile_blender Dead simple, barebones Blender (2.83) addon for placing meshes as tiles. Installation In Blender, go to Edit > Preferences > Add-ons

Sam Gibson 6 Jul 19, 2022
Fixed Version Of Blender Low Poly Rock Generator For Blender 3.0.0

Blender (3.0.0) - Low Poly Rock Generator This is an addon for Blender 3.0.0 to generate low poly rocks. It was based on an addon that unfortunately h

null 3 Mar 24, 2022
Rlmm blender toolkit - A set of tools to streamline level generation in UDK straight from Blender

rlmm_blender_toolkit A set of tools to streamline level generation in UDK straig

Rocket League Mapmaking 0 Jan 15, 2022
Blender-3D-SH-Dma-plugin - Import and export Sonic Heroes Delta Morph animations (.anm) into Blender 3D

io_scene_sonic_heroes_dma This plugin for Blender 3D allows you to import and ex

Psycrow 3 Mar 22, 2022
Blender-miHoYo-Shaders - Shaders for Blender attempting to replicate the shading of games developed by miHoYo

Blender-miHoYo-Shaders - Shaders for Blender attempting to replicate the shading of games developed by miHoYo

Matsuri 449 Jan 7, 2023