Graph Theory

In mathematics, graph theory is the study of graphs, which are mathematical structures used to model pairwise relations between objects.

Any diagram of points and line segments connecting pairs of points is called a graph. The points are usually called vertices or nodes, and the line segments are called edges. More than one edge is allowed to connect the same pair of vertices to yield a set of multiple edges. One can also permit an edge connecting a vertex to itself via a loop. Edges can intersect, but the places where they cross are not considered vertices.

A graph that comes in just one piece is called connected. This means that it is always possible to travel from any one vertex to any other by traversing a sequence of edges.

The degree (or valence) of a vertex is the number of edges that meet at that vertex. Loops are counted twice. A graph is called complete if every vertex is connected to each and every other vertex by a single edge. For example, the complete graph on four vertices looks like a square with the two

Maya Python Face Extrusion

Example 1

import maya.cmds as cmds
#create a polygonal sphere
#delete faces , from 160 to the end
#extrude all remaining faces
#extrusion distance 0.1
# faces are pulled independently
cmds.polyExtrudeFacet('pSphere1.f[:]',kft=False, ltz=.1)

Example 2

import maya.cmds as cmds

# extrude one face 20 times
# for every extrusion we perform a rotation and a translation
for i in range(1,20):
if i%2 ==0:

Example 3

#create a polygonal sphere having 10 subdivisions on x , 10 on y and radius equal to 5
#find out the number of faces
#extrude the faces with an even number , pulling them independently
for i in range(1,nrFete):
if i%2 ==0:

Maya Python Animation setKeyframe

In this example we’ll be looking at how to create keyframes with code. The script will animate a lot of small cubes placed on a sphere. We need 3 blinn shaders. First we create a sphere with default parameters.Then we create 250 small cubes. We use variable col1 for changing the cube color. pointPosition helps us getting the coordinates of the sphere vertices. We place the cubes on these positions and lastly we animate the cubes sizes, setting two keyframes.

Run the script and trigger playback.

Continue reading “Maya Python Animation setKeyframe”

ANIMAL ISLAND Aila Sit & Play Virtual Early Preschool Learning System for Toddlers

  • Animal Island Learning Adventure (AILA) Original Series for toddlers (12+ months) – high-quality educational content developed by educators and innovators for early learning when it matters the most. It’s hands-free, worry-free, ad-free and subscription-free with automatic updates. There are three play modes with curated playlists: broadcast for exposure, session for learning and lullaby for sleepy babies.
Continue reading “ANIMAL ISLAND Aila Sit & Play Virtual Early Preschool Learning System for Toddlers”