Git Product home page Git Product logo

topologicsverchok's People

Contributors

agonzalezesteve avatar andreitam11 avatar durman avatar luzpaz avatar theoryshaw avatar wassimj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

topologicsverchok's Issues

Usage instructions

Hi, thank you very much for your impressive work. You are doing an incredible gift for the opensource community. I am new to topologic and i would love to get some information to how to get started with this addon. If you would qve some spare time i would greatly appreciate if you could upload a small video or sone general instructions ( possibly with examples) on how to use this addon in general. I know that this is WIP but it already seems quiet usable. Thanks again.

Improve dependency installation

I would like to suggest improving the dependency installation.
This could be done in different ways:

  1. single Sverchok node that installs a module or list of modules
  2. automatic dependency installation in a form of a script
    3...

Build with Python 3.10 to support Blender 3.1?

The latest MacOS release is built with Python 3.9, but Blender 3.1 uses Python 3.10. Therefore, activation fails:

  • Blender version 3.1 with Python 3.10.0.2
  • MacOS version 12.3 (Monterey)
  • Sverchok installed from master branch on 2022-03-07
  • All Sverchok extras and optional nodes activated except Sverchok-Open3D and FreeCAD integration
  • Topologic installed from the latest MacOS release (2022-03-07)

The following error appears when trying to activate Topologic:

Traceback (most recent call last):
  File "/Applications/Blender.app/Contents/Resources/3.1/scripts/modules/addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "/Users/palazzo/Library/Application Support/Blender/3.1/scripts/addons/topologicsverchok/__init__.py", line 57, in <module>
    from topologic import Vertex, Edge, Wire, Face, Shell, Cell, CellComplex, Cluster, Topology
ImportError: cannot import name 'Vertex' from 'topologic' (unknown location)

Installation failed on Windows

Hello. I'm trying to install it on Windows on different Blender versions and I get an error:
Traceback (most recent call last):
File "............. \ 3.0 \ scripts \ modules \ addon_utils.py", line 351, in enable
mod = import __ (module_name)
File ".............. \ 3.0 \ scripts \ addons \ topologicsverchok \ __ init
.py", line 56, in
import topologic
ImportError: DLL load failed while importing topologic: The specified procedure could not be found.

Trouble with Topologicpy energy model tutorial

I'm currently working through the Topologicpy Energy tutorial. I started with the YouTube video but moved on to the notebook here on git hub. I'm running into a bit of trouble: "EnergyModel.ByTopology - Error: The openstudio model is null. Returning None" and also when trying to export the model: "AttributeError: 'NoneType' object has no attribute 'save'". I have the path to OpenStudio defined as: osBinaryPath = r"C:\openstudioapplication-1.5.0\bin\OpenStudioApp.exe" (also tried "openstudio.exe" in the same directory), and the outputFolder = r"C:\Users\anyde\Documents\PythonTutorials\TopologicPy\EnergyModels"
TopPy_save_error

Installation issue on blender in Linux

Hi, I am trying to install Topologic on Blender in Ubuntu. However, i get this error

File "/home/arun/Apps/blender-2.93.8-linux-x64/2.93/scripts/modules/addon_utils.py", line 351, in enable
    mod = __import__(module_name)
ModuleNotFoundError: No module named 'TopologicSverchok-0

I have tried this with blender 2.93, 3.0 and 3.1 and sverchok with all the extra nodes installed (have removed FreeCAD library though)

install from osarch-link on win10.. failed.

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 2.93\2.93\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok_init_.py", line 60, in
import topologic
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\topologic-0.5-py3.9.egg\topologic_init_.py", line 29, in
import cppyy
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_init_.py", line 74, in
from ._cpython_cppyy import *
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_cpython_cppyy.py", line 20, in
c = loader.load_cpp_backend()
File "C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_backend\loader.py", line 85, in load_cpp_backend
raise RuntimeError("could not load cppyy_backend library, details:\n%s" %
RuntimeError: could not load cppyy_backend library, details:
Could not find module 'libcppyy_backend.dll' (or one of its dependencies). Try using the full path with constructor syntax.
Could not find module 'C:\Users\alberts\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\topologicsverchok\topologicPy\site-packages\cppyy_backend\lib\libcppyy_backend.cp39-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
[WinError 1114] Eine DLL-Initialisierungsroutine ist fehlgeschlagen
Could not find module 'libcppyy_backend.cp39-win_amd64.pyd' (or one of its dependencies). Try using the full path with constructor syntax.

zip file was 270 MB and not 400MB ?
Lukas

No module named 'TopologicSverchok-v'

Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.5/scripts/modules/addon_utils.py", line 333, in enable mod = import (module name)
ModuleNotFoundError: No module named 'TopologicSverchok-v'

Dictionarybycustomproperties

i dont see dictionarybycustomproperties in the node menu. This is present in the topologic addon folder. Is this a bug or am i doing something wrong
This option is also not available in the python console from blender

I am using ubuntu linux

Screenshot from 2022-05-04 14-56-07
Screenshot from 2022-05-04 16-03-25

More elaborate README

  • Screenshots (preferably animated gifs)
  • Usage instructions.
  • Logos for sverchok and Topologic

Vertex cannot import? No. Cppyy sudo problems + libfreeimage6-dev + Topollogy by geometry node problems.

  File "/home/ololo/Downloads/INSTALL/blender-2.90.0-linux64/2.90/scripts/modules/addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "/home/ololo/.config/blender/2.90/scripts/addons/topologicsverchok/__init__.py", line 31, in <module>
    from topologic import Vertex, Edge, Wire, Face, Shell, Cell, CellComplex, Cluster
ImportError: cannot import name 'Vertex' from 'topologic' (/home/ololo/Downloads/INSTALL/blender-2.90.0-linux64/2.90/python/lib/python3.7/site-packages/topologic/__init__.py)

installating TopologicSverchok on Blender for Mac

Hi !
I'm trying to install TopologicSverchok on Mac.
On import, file init.py can't fint topologic, here is the console error :

Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/3.4/scripts/modules/addon_utils.py", line 333, in enable
mod = import(module_name)
File "/Users/sce/Library/Application Support/Blender/3.4/scripts/addons/TopologicSverchok-main/init.py", line 49, in
from topologic import Vertex, Edge, Wire, Face, Shell, Cell, CellComplex, Cluster, Topology
ImportError: cannot import name 'Vertex' from 'topologic' (unknown location)

Are menu icons coming

I would like to have menu icons for topologic for ease of use. I don't know if that is already on the way to implementation. This could save users from some pain reading down the huge node menu to find a node:)

linux version: libTopologicCore.so.0 file too short + other problems

Hi,
I just downloaded the latest release, but when I try to enable it in blender it throws this error:

Traceback (most recent call last):
  File "/usr/share/blender/3.1/scripts/modules/addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "/home/sanzo/.config/blender/3.1/scripts/addons/topologicsverchok/__init__.py", line 56, in <module>
    import topologic
ImportError: /home/sanzo/.config/blender/3.1/scripts/addons/topologicsverchok/site-packages/topologic-linux/./libTopologicCore.so.0: file too short

the file is 25 bytes in size and contains the "libTopologicCore.so.0.0.0" text.

Obviously this should be a link, and indeed replacing it to a symlink to libTopologicCore.so.0.0.0 solves this error, but another one appears:

Traceback (most recent call last):
  File "/usr/share/blender/3.1/scripts/modules/addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "/home/sanzo/.config/blender/3.1/scripts/addons/topologicsverchok/__init__.py", line 56, in <module>
    import topologic
ImportError: libTKernel.so.7: cannot open shared object file: No such file or directory

I don't know much about C++ compliation, but it seems there's something broken in the build toolchain.

Also, why there are both topologic and topologic-linux packages in the site-packages folder? they seem to be identical in size and file contents.

Why is Anaconda needed on Linux?

From the setup file:

if platform == 'linux' or platform == 'linux2' or platform == 'darwin':
  conda = '/opt/anaconda3/envs'

My setup:
System: Ubuntu 21.04
Blender: 2.93.0 Beta (Appimage)
Blender Python version: 3.9

Why is it necessary to install Anaconda to run this addon? I have already installed topologicPy with no problems, but your init.py setup won't run without Anaconda. The setup is also looking for the /opt directory in my home directory:

FileNotFoundError: [Errno 2] No such file or directory: '/home/scotus/opt/anaconda3/envs'

json examples

Can you create couple of json examples to include to sverchok examples?
We already have some extra nodes / freecad / openshape examples:
изображение
that depends on some libs. So no metter if default examples topology nodes will be inside sverchok (or add your topology examples menu to sverchok examples on fly)

Importans for educational curve

Cannot import 'Vertex' from Topologic

I get the following error when I try to install Topologic to Sverchok:

Report:
Error

  • Traceback (most recent call last):
    File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\modules\addon_utils.py", line 376, in enable
    mod = importlib.import_module(module_name)
    ^^^^^^^^^^^^^^^
    File "C:\Program Files\Blender Foundation\Blender 4.1\4.1\python\Lib\importlib_init_.py", line 126, in import_module
    return_bootstrap._gcd_import(name[level:], package, level)
    ΑΑΑΑΑΑΑΑΑΑΑΑΑΑ
    L^^^^^^^^^^^^^^
    File "", line 1204, in _gcd_import
    File "", line 1176, in _find_and_load
    File "", line 1147, in _find_and_load_unlocked
    File "", line 690, in _load_unlocked
    File "", line 940, in exec_module
    File "", line 241, in call_with_frames_removed
    File "C:\Users\Administrator\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\TopologicSverchok-main_init
    .py", line 49, in
    from topologic import Vertex, Edge, Wire, Face, Shell, Cell, CellComplex, Cluster, Topology
    ImportError: cannot import name 'Vertex' from 'topologic' (unknown location)

Install for Blender 4.1

Hello,

On trying to install with Blender 4.1 on PC, I am receiving an error once I try to activate the add-on.

Topologic_Error

Thank you for any help.

Lyle

Stethoscope printing

epic effort @wassimj , as a windows user i'm going to have to abstractly discuss this.

"""
in verts s
out objects s
"""

class derp(object):
    def __init__(self, holds="Nothing"):
        self.typed = holds
    
    def __repr__(self):
        return self.typed


F = derp("choopt")
G = derp("okaloo")

objects.extend([F, G])

image

rather than adjusting SvStethoscope node, i'm going to ask you if you've tried adding a __repr__ to the classes/objects you're passing around in Sverchok. That way you can control in a more granular way what Sverchok prints upon encountering your objects in SvStethoscope.

issue when activating latest version

i get this error when trying to activate the latest version of topologic sverchok:

Traceback (most recent call last):
File "/usr/share/blender/3.2/scripts/modules/addon_utils.py", line 335, in enable
mod = import(module_name)
File "/home/sinasta/.config/blender/3.2/scripts/addons/TopologicSverchok-main/init.py", line 383, in
imported_modules = make_node_list()
File "/home/sinasta/.config/blender/3.2/scripts/addons/TopologicSverchok-main/init.py", line 378, in make_node_list
module = importlib.import_module(f".{module_name}", base_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'topologicsverchok.nodes.Topologic.IFCExportToHBJSON'

energy model bugs and questions

Hello Wassim i want to do some energy simulations with topologicsverchok on a dataset of apartment cellcomplexes i generated beforehand. While trying this i realised a number of questions and potential bugs. I hope this is the right channel to post them:

  1. The example file included in the addon is working well after some slight modifications:

Screenshot from 2022-09-13 17-39-36

But when i try to replace the OSMTemplate-OfficeBuilding-3.2.0.osm file with the ASHRAEMidriseApartment.osm file or the ASHRAESecondarySchool.osm file an arror appears during the generation of the energymodel by topology:
[ERROR] topologicsverchok.nodes.Topologic.EnergyModelByTopology:70 : tuple index out of range
I suppose that there must be a difference between the working office.osm file and the two others which throw the same error no matter wich space types i assign to the cells.

  1. linked to the eroor befor i would like to ask if there is an existing database of osm template files from which i could download the appropriate one for my use case (space types like: Kitchen, living, bathroom etc in a lowrise resedential building)? If there is not such an database could you maybe provide me with an instruction how to create such an template file?

  2. my third question is more of an understanding question: in the EnergyModel.ByTopology node one can specify the room name Key and the room type Key (Name, Type by default). Does the dictionary keys have to stay Name and Type or could i name them ep_name and ep_type for example?

Thanks a lot!

Json dependency install (Linux)

I get this message in Blender Log:
Topologic - Warning: Could not import ladybug/honeybee/json so some related nodes are not available.
Topologic - Warning: Could not import ladybug/honeybee/json so some related nodes are not available.
Topologic - Warning: Could not import ladybug/honeybee/json so some related nodes are not available.
Which package do i need to install?
pip install json gives:
ERROR: Could not find a version that satisfies the requirement json
ERROR: No matching distribution found for json

Fails to load libTopologicCore.0.0.0.dylib on MacOS

Latest MacOS release (2022-03-07) + Blender 3.0

On trying to activate I get the following error:

Traceback (most recent call last):
  File "/Applications/Blender 3.0.1.app/Contents/Resources/3.0/scripts/modules/addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "/Users/palazzo/Library/Application Support/Blender/3.0/scripts/addons/topologicsverchok/__init__.py", line 56, in <module>
    import topologic
ImportError: dlopen(/Users/palazzo/Library/Application Support/Blender/3.0/scripts/addons/topologicsverchok/site-packages/topologic/topologic.cpython-39-darwin.so, 0x0002): Library not loaded: libTopologicCore.0.0.0.dylib
  Referenced from: /Users/palazzo/Library/Application Support/Blender/3.0/scripts/addons/topologicsverchok/site-packages/topologic/topologic.cpython-39-darwin.so
  Reason: tried: 'libTopologicCore.0.0.0.dylib' (relative path not allowed in hardened program), '/usr/lib/libTopologicCore.0.0.0.dylib' (no such file)

Feature Request: Optimized Oriented Bounding Box (OOBB)

For analyzing topologies (cells in particular) I would need to calculate OOBB cells. Two versions would be great:
A) smallest BB (oriented freely in 3D space):
image

B) Z-axis is fixed:
image

1, 2, 3 being Width, Depth, Height of the resulting bounding box.

CellDictionaries are incorrect after rotating Cellcomplex

Hello Wassim,
It seems like CellDictionary selectors are not rotated with the Cellcomplex when Topology.Rotate is used.
Screenshot from 2022-10-08 16-34-36
if the rotation is below a certain threshold (very low ~1-5 degrees) then the dictionaries stay correct.
Screenshot from 2022-10-08 16-35-01
This is why i assume that the Dictionary selectors are not rotated with the Cellcomplex. I think in general all the selectors should be affected by transformations of the Supertopology. But It could be that i just don't understand the purpose of them not beeing roatated. If so, i would love to know a way to properly rotate them with the supertopology.
Thanks a lot!

Nodes Reference

Is there any reference information available for the Topologic nodes? On the main Topologic website (topologic.app) the link to user documentation only leads me to the SDK. With almost 60 nodes, I'm trying to find out what they each are supposed to do, and where they interact in the system.

I have read the conference paper Topologic: Tools to explore architectural topology and I found the ideas very interesting. Figure 1 was especially informative. I'm now looking for the information to help me link the theory with the practical side, ie. Topologic/Sverchok.

I am also trying to convert the published tutorials using Dynamo to the Blender/Sverchok ecosystem so that I can have some idea what the software can do. Any help would be appreciated.

Francis Sim

Feature request: 'intelligent' floorplan generation

Hello,
I would like to know if somebody has experimented with combining the evolver node from sverchok (Evolutionary Solver, similar to galapagos GH) and Topologic to generate parametric floor-plans (the floorplans could take a relation graph as instructions). Some Examples from Grasshopper:
https://www.youtube.com/watch?v=xIOzF05ZYeU
https://www.youtube.com/watch?v=oUaLOr0cS6M
https://www.youtube.com/watch?v=6tdx_js0Gtc
https://www.youtube.com/watch?v=FC7mJqvcdcE
https://www.youtube.com/watch?v=w6Vs3RZX-1Q
In general i think that Topologic could benefit from the interaction with some 'learning/intelligent' algorithms (evolutionary, ml) even though my opinion is not really fact-based as i don't know enough about the technical parts yet.
I would be really greatful for any answers or discussion.

dgl nodes "not found"

Hi, I'm having a problem with the DGL nodes being "not found". The same with Speckle and Homemaker too.
dgl_nodes_issue

Topology.Triangulate

From TwistedTower tutorial. Topology.Triangulate not flatten the list and cause a long error
Topology Triangulate

HBModel.ByTopology argument error

The node fails and gives out the following error message:
“TypeError(‘processItem() takes 1 positional argument but 2 were given’)”

Change U/V Direction of Faces

Hi, i would like to know if there is any way of changing the U/V direction of individual faces? For example i have multiple different cellcomplexes and i would like to automatically add doors to the internal vertical faces. For that purpose i use the Face.VertexByParameters node on the internal vertical Faces. But the problem is that when i want to have those Vertex at U = 0.5 and V = 0 the Vertex are not all on the Bottom of their faces. Some are on top, on the side or on the Bottom.
Screenshot from 2022-04-24 10-58-54
Does somebody know of a way to influence (correct) the U/V direction of those faces? I would like them to be all the same (V pointing upwards).

Error with latest Sverchok

Hi, i just want to report that there is an error because of the latest changes to Sverchok:

Traceback (most recent call last):
File "/usr/share/blender/3.3/scripts/modules/addon_utils.py", line 333, in enable
mod = import(module_name)
File "/home/sinasta/.config/blender/3.3/scripts/addons/TopologicSverchok-main/init.py", line 418, in
imported_modules = make_node_list()
File "/home/sinasta/.config/blender/3.3/scripts/addons/TopologicSverchok-main/init.py", line 413, in make_node_list
module = importlib.import_module(f".{module_name}", base_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/sinasta/.config/blender/3.3/scripts/addons/TopologicSverchok-main/nodes/Topologic/GraphExportToDGCNN.py", line 5, in
from sverchok.core.socket_data import SvGetSocketInfo
ImportError: cannot import name 'SvGetSocketInfo' from 'sverchok.core.socket_data' (/home/sinasta/.config/blender/3.3/scripts/addons/sverchok-master/core/socket_data.py)

the error is most lkely caused by the changes introduced to Sverchok in this commit

Error upon installation

Hello, thanks for your work.
I'am getting this error when i try to install your addon on arch linux (manjaro).
I am using python 3.9 and blender 3.0 with a system installation (means blender is using my systems python packages instead of its own).

Traceback (most recent call last):
File "/usr/share/blender/3.0/scripts/modules/addon_utils.py", line 330, in enable
importlib.reload(mod)
File "/usr/lib/python3.9/importlib/init.py", line 169, in reload
_bootstrap._exec(spec, module)
File "", line 613, in _exec
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/sinasta/.config/blender/3.0/scripts/addons/topologicsverchok-main/init.py", line 40, in
topologicEggName = '/'+[name for name in os.listdir(win_prefix+'/topologicPy/site-packages') if name.startswith('topologic')][0]
FileNotFoundError: [Errno 2] No such file or directory: '/home/sinasta/.config/blender/3.0/scripts/addons/topologicsverchok-main/topologicPy/site-packages'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.