本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance.BlackMetalMaterial()
方法的一些代码示例,展示了YoAppearance.BlackMetalMaterial()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.BlackMetalMaterial()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearance
类名称:YoAppearance
方法名:BlackMetalMaterial
暂无
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private void populateDynamicsGraphicObjects(YoGraphicsListRegistry yoGraphicsListRegistry)
{
perturbanceApplicationPoint = new YoFramePoint3D("perturbanceApplicationPoint", "", ReferenceFrame.getWorldFrame(), registry);
YoGraphicVector perturbanceVisual = new YoGraphicVector("perturbanceVisual" + name, perturbanceApplicationPoint, perturbanceForce, 0.005, YoAppearance.BlackMetalMaterial());
yoGraphicsListRegistry.registerYoGraphic(name, perturbanceVisual);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private Graphics3DObject createCylinderGeometry(double length, double radius, AppearanceDefinition color, Vector3D cylinderZAxisInWorld,
Vector3D parentJointOffsetFromCoM)
{
Graphics3DObject ret = new Graphics3DObject();
ret.addSphere(1.5*radius, YoAppearance.BlackMetalMaterial());
ret.identity();
ret.translate(parentJointOffsetFromCoM);
AxisAngle cylinderRotationFromZup;
if (parentJointOffsetFromCoM.length() > 0.0)
cylinderRotationFromZup = EuclidGeometryTools.axisAngleFromZUpToVector3D(parentJointOffsetFromCoM);
else
cylinderRotationFromZup = EuclidGeometryTools.axisAngleFromZUpToVector3D(cylinderZAxisInWorld);
ret.rotate(cylinderRotationFromZup);
ret.translate(0.0, 0.0, -length / 2.0);
ret.addCylinder(length, radius, color);
return ret;
}
代码示例来源:origin: us.ihmc/IHMCPerception
AppearanceDefinition app = YoAppearance.BlackMetalMaterial();
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
AppearanceDefinition app = YoAppearance.BlackMetalMaterial();
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
terrain.addBox(xStart + edgeThick, yEnd - edgeThick, xEnd - edgeThick, yEnd, 0.8 + edgeHeight, YoAppearance.Brown());
ballRobot = new ContactableSphereRobot("DatBall", ballRadius, ballMass, YoAppearance.BlackMetalMaterial());
Point3D[] contactPointsOffset = SpiralBasedAlgorithm.generatePointsOnSphere(ballRadius, 500);
for (int i = 0; i < contactPointsOffset.length; i++)
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private Graphics3DObject createBoneGeometry(double length, double radius, AppearanceDefinition color, Vector3D cylinderZAxisInWorld,
Vector3D parentJointOffsetFromCoM)
{
Graphics3DObject ret = new Graphics3DObject();
ret.identity();
ret.addSphere(1.5*radius, YoAppearance.BlackMetalMaterial());
ret.translate(parentJointOffsetFromCoM);
AxisAngle cylinderRotationFromZup;
if (parentJointOffsetFromCoM.length() > 0.0)
cylinderRotationFromZup = EuclidGeometryTools.axisAngleFromZUpToVector3D(parentJointOffsetFromCoM);
else
cylinderRotationFromZup = EuclidGeometryTools.axisAngleFromZUpToVector3D(cylinderZAxisInWorld);
ret.rotate(cylinderRotationFromZup);
ret.translate(0.0, 0.0, -0.5 * length);
ret.addCone(1.0 * length, radius, color);
ret.translate(0.0, 0.0, 0.5 * length);
Vector3D rotationAxis = new Vector3D(cylinderRotationFromZup.getX(), cylinderRotationFromZup.getY(), cylinderRotationFromZup.getZ());
AxisAngle another180DegreeRotation = new AxisAngle(rotationAxis, Math.PI);
ret.rotate(another180DegreeRotation);
ret.translate(0.0, 0.0, -0.5 * length);
ret.addCone(1.0 * length, radius, color);
ret.translate(0.0, 0.0, 0.5 * length);
return ret;
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
linkGraphics.addPyramidCube(PYRAMID_CUBE_LX, PYRAMID_CUBE_LY, PYRAMID_CUBE_LZ, PYRAMID_CUBE_LH, YoAppearance.BlackMetalMaterial());
内容来源于网络,如有侵权,请联系作者删除!