[Yade-dev] [Branch ~yade-dev/yade/trunk] Rev 1738: Some nonessential changes

2009-08-26 Thread noreply

revno: 1738
committer: Anton Gladky gladky.an...@gmail.com
branch nick: trunk
timestamp: Wed 2009-08-26 11:10:54 +0200
message:
  Some nonessential changes
modified:
  pkg/dem/meta/RockPM.cpp
  py/utils.py


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to 
https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'pkg/dem/meta/RockPM.cpp'
--- pkg/dem/meta/RockPM.cpp	2009-08-24 14:59:16 +
+++ pkg/dem/meta/RockPM.cpp	2009-08-26 09:10:54 +
@@ -32,7 +32,6 @@
 void Law2_Dem3DofGeom_RockPMPhys_Rpm::go(shared_ptrInteractionGeometry ig, shared_ptrInteractionPhysics ip, Interaction* contact, MetaBody* rootBody){
 	Dem3DofGeom* geom=static_castDem3DofGeom*(ig.get());
 	RpmPhys* phys=static_castRpmPhys*(ip.get());
-	//geom-distanceFactor=1.1;
 	
 	Real displN=geom-displacementN();
 	const Real crossSection=phys-crossSection;
@@ -57,10 +56,6 @@
 	const shared_ptrRpmMat rbp1=YADE_PTR_CASTRpmMat(body1-physicalParameters);
 	const shared_ptrRpmMat rbp2=YADE_PTR_CASTRpmMat(body2-physicalParameters);
 	
-	///check, whether one of bodies is damaged
-	if ((rbp1-isDamaged) || (rbp2-isDamaged)) {
-		phys-isCohesive = false;
-	}
 
 	if(displN=0){
 		/**Normal Interaction*/
@@ -84,26 +79,35 @@
 		phys-shearForce = Fs;
 
 		applyForceAtContactPoint(phys-normalForce + phys-shearForce, geom-contactPoint, contact-getId1(), geom-se31.position, contact-getId2(), geom-se32.position, rootBody);
-		/**Normal Interaction_*/
+		/**Normal Interaction*/
 		if ((phys-isCohesive)(displN(-phys-lengthMaxCompression))) {
-			//LOG_WARN(displN__COMRESS!!!__);
 			phys-isCohesive = false;
-			rbp1-isDamaged=true;
-			rbp2-isDamaged=true;
 		}
 		return;
 	} else {
+		/**If spheres do not touch, check, whether they are cohesive*/
 		if (phys-isCohesive) {
+			/**If the distance 
+			 * between spheres more than critical and they are cohesive,
+			 * we delete the interaction
+			 * Destruction.
+			 **/
 			if (displN(phys-lengthMaxTension)) {
-//LOG_WARN(displN__TENSION!!!__);
 rootBody-interactions-requestErase(contact-getId1(),contact-getId2());
 return; 
 			} else {
+			/**If the distance 
+			 * between spheres less than critical and they are cohesive,
+			 * we aply additional forces to keep particles together.
+			 **/
 phys-normalForce=phys-kn*displN*geom-normal;
 applyForceAtContactPoint(phys-normalForce, geom-contactPoint, contact-getId1(), geom-se31.position, contact-getId2(), geom-se32.position, rootBody);
 return;
 			}
 		} else {
+			/**
+			 * Delete interactions
+			 */ 
 			rootBody-interactions-requestErase(contact-getId1(),contact-getId2());
 			return;
 		}

=== modified file 'py/utils.py'
--- py/utils.py	2009-08-24 17:07:33 +
+++ py/utils.py	2009-08-26 09:10:54 +
@@ -142,28 +142,6 @@
 	if wallMask32: ret+=doWall(E,F,G,H)
 	return ret
 	
-	'''
-	mn,mx=[center[i]-extents[i] for i in 0,1,2],[center[i]+extents[i] for i in 0,1,2]
-	def doWall(a,b,c,d):
-		return [facet((a,b,c),**kw),facet((a,c,d),**kw)]
-	ret=[]
-	qTemp = Quaternion(Vector3(orientation[0],orientation[1],orientation[2]),orientation[3])
-	A=qTemp.Rotate(Vector3(mn[0],mn[1],mn[2]))
-	B=qTemp.Rotate(Vector3(mx[0],mn[1],mn[2]))
-	C=qTemp.Rotate(Vector3(mx[0],mx[1],mn[2]))
-	D=qTemp.Rotate(Vector3(mn[0],mx[1],mn[2]))
-	E=qTemp.Rotate(Vector3(mn[0],mn[1],mx[2]))
-	F=qTemp.Rotate(Vector3(mx[0],mn[1],mx[2]))
-	G=qTemp.Rotate(Vector3(mx[0],mx[1],mx[2]))
-	H=qTemp.Rotate(Vector3(mn[0],mx[1],mx[2]))
-	if wallMask1:  ret+=doWall(A,D,H,E)
-	if wallMask2:  ret+=doWall(B,C,G,F)
-	if wallMask4:  ret+=doWall(A,B,F,E)
-	if wallMask8:  ret+=doWall(D,H,G,C)
-	if wallMask16: ret+=doWall(A,D,C,B)
-	if wallMask32: ret+=doWall(E,F,G,H)
-	return ret
-	'''
 	
 
 def aabbWalls(extrema=None,thickness=None,oversizeFactor=1.5,**kw):

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] [Bug 419140] [NEW] SpheresFactory not functional (Collider::probeBoundingVolume doesn't exist anymore)

2009-08-26 Thread Václav Šmilauer
Public bug reported:

examples/SpheresFactory/model.py crashes in SpheresFactory, since
Collider::probeBoundingVolume is unimplemented in InsertionSortCollider.
It should be either implemented (unlikely by me ATM) or implemented in a
different way in SpheresFactory itself.

** Affects: yade
 Importance: Low
 Status: New

** Changed in: yade
   Importance: Undecided = Low

-- 
SpheresFactory not functional (Collider::probeBoundingVolume doesn't exist 
anymore)
https://bugs.launchpad.net/bugs/419140
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: New

Bug description:
examples/SpheresFactory/model.py crashes in SpheresFactory, since 
Collider::probeBoundingVolume is unimplemented in InsertionSortCollider. It 
should be either implemented (unlikely by me ATM) or implemented in a different 
way in SpheresFactory itself.

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] 0.20-0 ready?

2009-08-26 Thread Anton Gladky
According to milestone dates, we are almost at 0.20-0 release.
Is everything ready for that? What can be done else?

Will we be post news about this release?
I can post about the release to main Russian-speaking Open-Source sites.

__
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями

Anton Gladkyy
___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] [Branch ~yade-dev/yade/trunk] Rev 1739: 1. Remove garbage from examples.

2009-08-26 Thread noreply

revno: 1739
committer: Václav Šmilauer vac...@flux
branch nick: trunk
timestamp: Wed 2009-08-26 12:34:11 +0200
message:
  1. Remove garbage from examples.
  2. Fix SpheresFactory, fix examples/SpheresFactory/model.py
removed:
  examples/README
  examples/cmdGui1.py
modified:
  examples/SpheresFactory/model.py
  pkg/common/Engine/StandAloneEngine/SpheresFactory.cpp
  pkg/common/Engine/StandAloneEngine/SpheresFactory.hpp


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to 
https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== removed file 'examples/README'
--- examples/README	2008-03-31 15:56:52 +
+++ examples/README	1970-01-01 00:00:00 +
@@ -1,23 +0,0 @@
-This directory contains some examples for filegenerators:
-
-2 examples for FEM
-1 example for SDEC Impact test
-
-Other filegenerators work without need for any input file. They generate examples
-just by parameters given to them.
-
-
-By default yade filegenerators are looking for those files in ../data directory.
-You can specify another directory in filegenerator, but for now you would have to
-change it every time (bug #004853). To avoid the hassle you can just copy content
-of this directory to ../data relative to path from where you are starting yade
-( most probably bin/ ).
-
-For example my directory tree with yade looks like this:
-
-YADE
-|-- bin
-|-- data
-|-- include
-`-- lib
-

=== modified file 'examples/SpheresFactory/model.py'
--- examples/SpheresFactory/model.py	2009-03-30 16:10:27 +
+++ examples/SpheresFactory/model.py	2009-08-26 10:34:11 +
@@ -2,9 +2,6 @@
 
 from yade import utils
 
-## Omega
-o=Omega() 
-
 ## PhysicalParameters 
 Young = 0.15e9
 Poisson = 0.3
@@ -17,56 +14,29 @@
 factory3 = utils.import_stl_geometry('square.stl',color=[0.4,0.4,0.7],noInteractingGeometry=True)
 
 ## Timestep 
-o.dt=0.0001
+O.dt=0.0001
 
 ## Initializers 
-o.initializers=[
-	MetaEngine('BoundingVolumeMetaEngine',
-		[EngineUnit('InteractingSphere2AABB'),
-			EngineUnit('InteractingFacet2AABB'),
-			EngineUnit('MetaInteractingGeometry2AABB')]),
+O.initializers=[
+	BoundingVolumeMetaEngine([InteractingSphere2AABB(),InteractingFacet2AABB(),MetaInteractingGeometry2AABB()])
 	]
 
 ## Engines 
-o.engines=[
-	StandAloneEngine('PhysicalActionContainerReseter'),
-	MetaEngine('BoundingVolumeMetaEngine',[
-		EngineUnit('InteractingSphere2AABB'),
-		EngineUnit('InteractingFacet2AABB'),
-		EngineUnit('MetaInteractingGeometry2AABB')
-	]),
-	StandAloneEngine('PersistentSAPCollider'),
-
+O.engines=[
+	BexResetter(),
+	BoundingVolumeMetaEngine([InteractingSphere2AABB(),InteractingFacet2AABB(),MetaInteractingGeometry2AABB()]),
+	InsertionSortCollider(),
 	## Spheres factory engine
-	StandAloneEngine('SpheresFactory',{'factoryFacets':factory1,'virtPeriod':0.005,'radius':0.07,'radiusRange':0.03,'young':Young,'color':[1,0,0]}),
-	StandAloneEngine('SpheresFactory',{'factoryFacets':factory2,'virtPeriod':0.01,'radius':0.08,'young':Young,'color':[0,1,0]}),
-	StandAloneEngine('SpheresFactory',{'factoryFacets':factory3,'virtPeriod':0.01,'radius':0.05,'young':Young,'color':[0,0,1]}),
-
-	MetaEngine('InteractionGeometryMetaEngine',[
-		EngineUnit('InteractingSphere2InteractingSphere4SpheresContactGeometry'),
-		EngineUnit('InteractingFacet2InteractingSphere4SpheresContactGeometry')
-	]),
-	MetaEngine('InteractionPhysicsMetaEngine',[EngineUnit('MacroMicroElasticRelationships')]),
-
-	DeusExMachina('GravityEngine',{'gravity':[0,0,-9.81]}),
-	
-	StandAloneEngine('ElasticContactLaw'),
-	
-	MetaEngine('PhysicalActionDamper',[
-		EngineUnit('CundallNonViscousForceDamping',{'damping':0.3}),
-		EngineUnit('CundallNonViscousMomentumDamping',{'damping':0.3})
-	]),
-
-	MetaEngine('PhysicalActionApplier',[
-		EngineUnit('NewtonsForceLaw'),
-		EngineUnit('NewtonsMomentumLaw'),
-	]),
-
-	MetaEngine('PhysicalParametersMetaEngine',[EngineUnit('LeapFrogPositionIntegrator')]),
-	MetaEngine('PhysicalParametersMetaEngine',[EngineUnit('LeapFrogOrientationIntegrator')]),
-
+	SpheresFactory(factoryFacets=factory1,virtPeriod=0.005,radius=0.07,radiusRange=0.03,young=Young,color=(1,0,0)),
+	SpheresFactory(factoryFacets=factory2,virtPeriod= 0.01,radius=0.08,young=Young,color=(0,1,0)),
+	SpheresFactory(factoryFacets=factory3,virtPeriod= 0.01,radius=0.05,young=Young,color=(0,0,1)),
+
+	InteractionGeometryMetaEngine([ef2_Facet_Sphere_Dem3DofGeom(),ef2_Sphere_Sphere_Dem3DofGeom()]),
+	InteractionPhysicsMetaEngine([SimpleElasticRelationships()]),
+	ConstitutiveLawDispatcher([Law2_Dem3Dof_Elastic_Elastic()]),
+
+	GravityEngine(gravity=(0,0,-9.81)),
+	NewtonsDampedLaw(damping=0.3)
 ]
-
-## Save the scene to file, so that it can be loaded later. Supported extension are: .xml, .xml.gz, .xml.bz2.
-o.save('/tmp/a.xml');
+O.saveTmp()
 

=== removed file 'examples/cmdGui1.py'
--- examples/cmdGui1.py	2008-05-15 15:59:06 

[Yade-dev] [Bug 398578] Re: Expanded abstract

2009-08-26 Thread Anton Gladky
Abstract is moved to the main page

http://yade.wikia.com/wiki/Yade

** Changed in: yade
   Status: In Progress = Fix Released

-- 
Expanded abstract
https://bugs.launchpad.net/bugs/398578
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: Fix Released

Bug description:
Creating a new, more expanded abstract will better introduce YADE. It needs to 
be translated into several main languages.
This text can be inserted to news and announcements about YADE releases and 
other PR-texts.

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] 0.20-0 ready?

2009-08-26 Thread Václav Šmilauer

 According to milestone dates, we are almost at 0.20-0 release.
 Is everything ready for that? What can be done else?
 
 Will we be post news about this release? 
 I can post about the release to main Russian-speaking Open-Source
 sites.

It would be nice if some devs (other then me, Anton and Janek) tested
current trunk thoroughly, but my feeling is that the lazy researchers
won't do that ;-)

I would wait a few days, then branch 0.20, let launchpad build packages
etc. There is no hurry to annouce it.

V.




___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Delete page on Wikia

2009-08-26 Thread Václav Šmilauer

 Does anybody know how to do it?
I have delete button right next to the edit one...



___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Delete page on Wikia

2009-08-26 Thread Anton Gladky
I dont. The next is history for me.

Could you not delete :

http://yade.wikia.com/wiki/Structurized_content
http://yade.wikia.com/wiki/Abstract

Thank you



2009/8/26 Václav Šmilauer eudo...@arcig.cz


  Does anybody know how to do it?
 I have delete button right next to the edit one...



 ___
 Mailing list: 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 Post to : yade-dev@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] Warnings during Python script start

2009-08-26 Thread Anton Gladky
Sometimes I get:


/usr/lib/python2.6/dist-packages/pytz/__init__.py:32: UserWarning: Module
pylab was already imported from /usr/lib/python2.6/dist-packages/pylab.py,
but /usr/lib/python2.6/dist-packages is being added to sys.path
  from pkg_resources import resource_stream
/usr/lib/python2.6/dist-packages/pytz/__init__.py:32: UserWarning: Module
matplotlib was already imported from
/usr/lib/python2.6/dist-packages/matplotlib/__init__.py, but
/usr/lib/python2.6/dist-packages is being added to sys.path

Is it bug in my script?

__

Anton Gladkyy
___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] [Branch ~yade-dev/yade/trunk] Rev 1740: move SpheresFactor to scripts/test as it doesn't work. Add notes to changelog and news.

2009-08-26 Thread noreply

revno: 1740
committer: Václav Šmilauer vac...@flux
branch nick: trunk
timestamp: Wed 2009-08-26 14:47:54 +0200
message:
  move SpheresFactor to scripts/test as it doesn't work. Add notes to changelog 
and news.
renamed:
  examples/SpheresFactory/ = scripts/test/SpheresFactory/
modified:
  ChangeLog
  NEWS


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to 
https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== modified file 'ChangeLog'
--- ChangeLog	2009-07-27 17:08:23 +
+++ ChangeLog	2009-08-26 12:47:54 +
@@ -1,3 +1,9 @@
+NOTE: this changelog is no longer maintained as of 8/2009,
+go to http://bazaar.launchpad.net/~yade-dev/yade/trunk/changes
+for complete history or use bzr log on your local checkout/branch.
+
+---
+
 2008-08-20 Janek Kozicki cosu...@gmail.com revision 1480
 
 	* ChangeLog: New ChangeLog format. Please use this format in your

=== modified file 'NEWS'
--- NEWS	2009-08-18 11:42:54 +
+++ NEWS	2009-08-26 12:47:54 +
@@ -1,6 +1,6 @@
 vim:syntax=changelog
 
-2009-08-?? Václav Šmilauer eudo...@arcig.cz revision 19??
+2009-08-31 Václav Šmilauer eudo...@arcig.cz revision around bzr1740
 
 	* RELEASE: 0.20.0
 

=== renamed directory 'examples/SpheresFactory' = 'scripts/test/SpheresFactory'
___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] [Bug 416335] Re: fails to run on ubuntu 9.10 karmic

2009-08-26 Thread Václav Šmilauer
Is a bug not in yade (but not known where exactly), the fix will be
backported to the 0.20 branch once it becomes available to not block the
release.

** Changed in: yade
Milestone: 0.20-0 = None

-- 
fails to run on ubuntu 9.10 karmic 
https://bugs.launchpad.net/bugs/416335
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: In Progress

Bug description:
Due to some incompatibility in either boost::python or py++ the miniWm3Wrap 
fails to be imported. Once the issue 
(http://thread.gmane.org/gmane.comp.python.c++/13979) is resolved, this bug can 
be closed.

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


[Yade-dev] [Branch ~yade-dev/yade/trunk] Rev 1741: Forgotten file

2009-08-26 Thread noreply

revno: 1741
committer: Václav Šmilauer vac...@flux
branch nick: trunk
timestamp: Wed 2009-08-26 14:54:33 +0200
message:
  Forgotten file
added:
  examples/concrete/confined.table


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to 
https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription.
=== added file 'examples/concrete/confined.table'
--- examples/concrete/confined.table	1970-01-01 00:00:00 +
+++ examples/concrete/confined.table	2009-08-26 12:54:33 +
@@ -0,0 +1,20 @@
+#
+# Use this table with yade-multi like this:
+#
+#   yade-version-multi --gnuplot confined.gnuplot confined.table uniax.py
+#
+# and watch http://localhost:9080 while it runs
+#
+# OMP_NUM_THREADS: number of threads to use (bang at the beginning: passed as environment variable)
+# isoPrestress: confinement (bang at the end = parameter and value will appear in the job id)
+# doModes: run both tensioncompression only in the unconfined case, otherwise just compression
+#
+
+!OMP_NUM_THREADS isoPrestress! doModes
+4  0 3 
+4  -20e6 2
+4  -50e6 2
+4 -100e6 2
+4 -200e6 2
+4 -400e6 2
+

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Anton Gladky
Is it difficult to make normal highlight (like BOXes do), and chameleon
make like an option?

What files should I inspect for that?

Thank you



2009/8/13 Václav Šmilauer eudo...@arcig.cz


  It works very interesting, Facets change their color all the time :)

 Well, the point of highlighting is to make a body visible among bunch of
 other bodies.



 ___
 Mailing list: 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 Post to : yade-dev@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer

 Is it difficult to make normal highlight (like BOXes do), and
 chameleon make like an option?

There is no special box highlight... The only highlight it the
chameleon one, the rest is picking brighter color for that body in
question.




___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer
ok, I get your point. That is caused by the way openGL rendering code is
written; somehow boxes have glossy surface and facets don't. I am in no
way familiar with opengl, it is mostly code Olivier has written in the
prehistoric (= pre-python) period. If you know something about opengl,
go for it, if you don't or don't have time, you can file bug about that.

Once I was trying to make specular light used, but then I gave up. The
chameleon highlight is made by changing periodically the ambient light,
the color of bodies doesn't have to be changed that way.

V.

 
 from yade import utils
 o=Omega()
 kw_facets={'frictionAngle':0.3,'young':37e9,'wire':False,'dynamic':False,'highlight':False}
 q1 = Quaternion(Vector3(0,0,1),0)
 o1,o_angl = q1.ToAxisAngle()
 id=o.bodies.append(utils.facetBox((0,0,0),(1,1,1),(o1[2],o1[0],o1[1],o_angl),exampleNumber=10,color=(1,1,0.1),**kw_facets))
 o.bodies.append(utils.box(center=[0,2,0],orientation=[o1[2], o1[0],
 o1[1], o_angl],extents=[1,1,1],color=[1,1,0.1]))
 from yade import qt
 qt.View()


___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer
In another words: box's color depends on its relative orientation to the
light source, with facets, the color is always the same regardless of
orientation WRT the light source. It makes facet's surfaces much less 3d
actually.



___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Anton Gladky
Ok, thanks for information. It is interesting, and I will try to find out
how it was made.

Actually, what is the difference between  Blueprints and Bugs?
Blueprints are proposals? So, maybe it is a blueprint?



2009/8/26 Václav Šmilauer eudo...@arcig.cz

 In another words: box's color depends on its relative orientation to the
 light source, with facets, the color is always the same regardless of
 orientation WRT the light source. It makes facet's surfaces much less 3d
 actually.



 ___
 Mailing list: 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 Post to : yade-dev@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Anton Gladky
https://blueprints.launchpad.net/yade/+spec/facets-shadow


2009/8/26 Václav Šmilauer eudo...@arcig.cz

  Actually, what is the difference between  Blueprints and Bugs?
  Blueprints are proposals? So, maybe it is a blueprint?
 Oh yes, that's right. (I would use bugs for small things, but this is
 definitely a bigger one.)



 ___
 Mailing list: 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 Post to : yade-dev@lists.launchpad.net
 Unsubscribe : 
 https://launchpad.net/~yade-devhttps://launchpad.net/%7Eyade-dev
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] 0.20-0 ready?

2009-08-26 Thread Václav Šmilauer

  According to milestone dates, we are almost at 0.20-0 release.
  Is everything ready for that? What can be done else?

I uploaded some preliminary packages to our PPA at
https://launchpad.net/~yade-users/+archive/ppa (now it builds for
jaunty, I will copy to hardy packages once it is ready). If there is
something suspicious, let me know.



___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-dev] Facet Highlight

2009-08-26 Thread Václav Šmilauer
 Actually, what is the difference between  Blueprints and Bugs?
 Blueprints are proposals? So, maybe it is a blueprint?
Oh yes, that's right. (I would use bugs for small things, but this is
definitely a bigger one.)



___
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp