gpt4 book ai didi

us.ihmc.graphicsDescription.appearance.YoAppearance.BlackMetalMaterial()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 09:36:40 27 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance.BlackMetalMaterial()方法的一些代码示例,展示了YoAppearance.BlackMetalMaterial()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoAppearance.BlackMetalMaterial()方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.appearance.YoAppearance
类名称:YoAppearance
方法名:BlackMetalMaterial

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());

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com