cylinders
- From: joseph.chewning@xxxxxxxxxxxxx
- Date: 5 Nov 2006 10:51:17 -0800
how do you use the Mesh.Cylinder and then align the mesh between two
known points??? I have been struggling with this for about a week. I
think I am making it hard than it is. Below is my code:
//Create the Mesh
bb = new Mesh[MC[TC.SelectedIndex].bc.Count];//set it to final will
change when setting color
foreach (Bond bt in m.bc)
{
if (bt.BondType == BondType.S)//single bonds
{
Mesh hg = Mesh.Cylinder(device, bt.BondRadius/2, bt.BondRadius/2,
bt.RenderDistance, 10, 10+count);
bt.BondMesh = hg;
bb.SetValue(hg, count);
}
count++;
}
//draw the mesh
Matrix mainM = Matrix.Identity;
Rotato.RotateY(by);
Rotato.RotateX(bx);
device.Transform.World = mainM * Rotato * Matrix.Translation(bo);
any help at all will be much appreciated
Thanks,
JC
.
- Prev by Date: Re: object interaction
- Next by Date: Frame blitter at 80 fps 800x1024
- Previous by thread: Litterature on "Component Based Object System" and scenegraphs
- Next by thread: Frame blitter at 80 fps 800x1024
- Index(es):
Relevant Pages
|