Comments (5)
The following line (1612 as of this writing) in cellblender_operators.py is no
longer working:
mol_pos_mesh.vertices.foreach_set("normal", mol_orient)
However it is still possible to set the normals manually as in the following
for loop:
for idx, vert in enumerate(mol_pos_mesh.vertices):
setattr(vert, "normal", mathutils.Vector((mol_orient[idx*3], mol_orient[idx*3+1], mol_orient[idx*3+2])))
I have not timed this to see if it's any slower than the original method. This
would be worth looking into.
Also, I posted a bug report to the Blender developers about this problem, and
it's targeted to be investigated.
Original comment by [email protected]
on 27 Feb 2013 at 7:49
from cellblender.
On second thought, I suppose this would be a more sensible/clearer alternative
than using setattr:
for idx, vert in enumerate(mol_pos_mesh.vertices):
vert.normal = mathutils.Vector((mol_orient[idx*3], mol_orient[idx*3+1], mol_orient[idx*3+2]))
:)
Original comment by [email protected]
on 27 Feb 2013 at 8:10
from cellblender.
It's been reported that there is a fix in the Blender svn repo.
Original comment by [email protected]
on 28 Feb 2013 at 5:04
from cellblender.
The workaround is definitely slower. With 100,000 molecules, it takes about
0.004 seconds to set the normals with the original method and about 0.135
seconds with the workaround.
Original comment by [email protected]
on 28 Feb 2013 at 8:23
from cellblender.
A fix was added for Blender 2.66a.
Original comment by [email protected]
on 12 Mar 2013 at 4:15
- Changed state: Fixed
from cellblender.
Related Issues (20)
- Add Python 2.6 support for sim runner
- Creating model objects fails [Blender 2.69 backcompat issue] HOT 2
- missing license file HOT 1
- allow users to manually set project_files directory HOT 1
- Fix Parameter Search and Sort capabilites HOT 1
- Development Branch: Installation ImportError HOT 4
- Allow export of ASCII viz data
- Export geometry doesn't auto-triangulate meshes HOT 1
- Plotting issue on cluster. Requesting start_time.txt file
- Defining 'extracellular' molecules HOT 3
- Blender not showing CellBlender's "Scene" or "Object" Properties HOT 2
- MCell only using 5% of my CPU power. HOT 1
- Tutorial to find CellBlender panel in Blender 2.93
- Visualize Neurons from NeuPrint in Blender
- Cannot install the add-on in blender 3.2 - macOS 12.4 Monterey
- Issue when trying to import BNGL model into CellBlender 2.93 HOT 2
- Potential bug when trying to run BNG model
- Conflicts in MDL String Reaction Output
- Page Numbers on QRG PDF HOT 2
- Deleting molecules can make errors difficult to fix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cellblender.